plotting graph using python

Here you go.......................
pip install matplotlib
import numpy as np
import matplotlib.pyplot as plt

# define the co-rdinatesx=np.arange(0,3*np.pi,1)
y=np.sin(x)
plt.plot(x,y)
plt.show()

Yes, that's all
replace sin with cos or tan and you get :


For more details click here


Comments

Popular Posts