import matplotlib.pyplot as plt
plt.figure() #instantiates
x_coord = [0,1,2,3,4,5]
plt.plot(x_coord, [10,20,30,40,50,60],'r-') #normal
plt.plot(x_coord, [28,25,35,45,55,65], 'b--') #dashed
plt.plot(x_coord, [18,28,38,48,58,68], 'c-', linewidth=20) #thick line
plt.savefig("pract2.jpg")
plt.figure() #instantiates
x_coord = [0,1,2,3,4,5]
plt.plot(x_coord, [10,20,30,40,50,60],'r-') #normal
plt.plot(x_coord, [28,25,35,45,55,65], 'b--') #dashed
plt.plot(x_coord, [18,28,38,48,58,68], 'c-', linewidth=20) #thick line
plt.savefig("pract2.jpg")
Blogger Comment
Facebook Comment