python plot sine curve or wave

description: python code to plot sine wave

draw or plot sine curve code

1
2
3
4
5
6
7
8
import numpy as np
import matplotlib.pyplot as plt

x=np.arange(0,2*np.pi,0.01)
y=np.sin(x)

plt.plot(x,y)
plt.show()