Sin Plot

import numpy as np
import matplotlib.pylab as plt
x = np.arange(20, 29)
print(x)
[20 21 22 23 24 25 26 27 28]
y = np.sin(x)
print(y)
[ 0.91294525  0.83665564 -0.00885131 -0.8462204  -0.90557836 -0.13235175
  0.76255845  0.95637593  0.27090579]
plot = plt.plot(x, y)
plt.grid(True)
plt.show()

png