Python Matplotlib Program for Marker

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()

Program 2

import matplotlib.pyplot as mat
x=[0,1,2,3,4,5]
y=[0,1,2,3,4,5]
mat.plot(x,y,marker='h',mec='y',mfc='g',ms=15)
mat.xlabel("X-Axis")
mat.ylabel("Y-Axis")
mat.title("Marker Example")
mat.show()

 

Your opinion matters
Please write your valuable feedback about DataFlair on Google

courses

TechVidvan Team

TechVidvan Team provides high-quality content & courses on AI, ML, Data Science, Data Engineering, Data Analytics, programming, Python, DSA, Android, Flutter, full stack web dev, MERN, and many latest technology.

Leave a Reply

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