How to Design a Chart in 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=[0,1,2,3,4,5]
mat.plot(x,y)
mat.xlabel("X-Axis")
mat.ylabel("Y-Axis")
mat.title("Line Chart")
mat.show()
If you are Happy with DataFlair, do not forget to make us happy with your positive feedback on Google

