Plot

plot sin curve

>>> import numpy as np

>>> import matplotlib.pyplot as plt

# generate sin data

>>> x = np.linspace(-10,10,100) # get 100 numbers from -10 to 10

>>> y = np.sin(x)

# plot curve

>>> plt.plot(x,y)

>>> plt.show()