CodingGraphs

Matplotlib HalloWorld

Posted
from matplotlib import pyplot
import random   
    
x = range(0,25)       
y = [random.randint(0,100) for r in range(0,25)]       

fig1 = pyplot.figure()       

pyplot.plot(x, y, '-')       
pyplot.title('First Plot - Random integers')       
pyplot.xlabel('X Axis')
pyplot.ylabel('Y Axis')       
               
pyplot.show() 
https://user-images.githubusercontent.com/52040368/73529351-0159c200-4430-11ea-95d8-f15594ae71bb.png

Leave a Reply

Your email address will not be published. Required fields are marked *