How to Change Line in Chart using Matplotlib
Machine Learning courses with 100+ Real-time projects Start Now!!
Program 1
import matplotlib.pyplot as mat
x=[0,1,2,3,4,5]
y=[i**2 for i in x]
mat.plot(x,y,marker='.',mfc='y',mec='k',ms=10,ls="solid",lw=2,c='r')
mat.xlabel("X-Axis")
mat.ylabel("Y-Axis",)
mat.title("Line Chart")
mat.show()
Did you know we work 24x7 to provide you best tutorials
Please encourage us - write a review on Google

