Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 23131

matplotlib is no running in VS

$
0
0

I am practicing matplotlib. I am using the following code:

import matplotlib.pyplot as plt    y = [1,2,3,4,5]    x = [10,12,5,8,3]    plt.plot(x,y)    plt.title('Line Chart')    plt.xlabel('x-axis')    plt.ylabel('y-axis')    plt.show

There is not issue with it, but the graph is not shown.

I installed matplotlib already. I can't find the library as extension inVS

This is what I got in the console (including the space in-between):

"PS C:\Users\HP>

& C:/Users/HP/AppData/Local/Programs/Python/Python312/python.exe "c:/Users/HP/OneDrive/Python Training/Matplotlib Training 1.py"PS C:\Users\HP> "

Thank.

#I am expecting to visualize the data.


Viewing all articles
Browse latest Browse all 23131

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>