Home » Blog » Basics Of MatPlotLib In Python

Basics Of MatPlotLib In Python

import numpy as np
import matplotlib.pyplot as plt
x=np.arange(0,20)
y=x+2
plt.title("Matplotlibdemo")
plt.xlabel("x axis caption")
plt.ylabel("y axis caption")
plt.plot(x,y,linestyle='-',color='b')
plt.show()
  • OutPut

Leave a Reply

Your email address will not be published.