Skip to main content

Draw a Static line graph Using Matplotlib


Draw a graph with static data using matplotlib


Code:


import matplotlib.pyplot as plt 

plt.plot([1,2,3,4])

plt.ylabel('some numbers')

plt.show()

output:

Comments