Skip to main content

Draw with matplotlib python and jupyter notebook

Matplotlib


So, let's see how we can make some graphic with Jupyter notebook.

Open the notebook and write this:

%matplotlib notebook
import matplotlib.pylab as plt
import numpy as np

x = np.linspace(0,8)
line = plt.plot(x, np.sin(x), '-', linewidth=1)



Have fun changing the parameters

%matplotlib notebook
import matplotlib.pylab as plt
import numpy as np

x = np.linspace(0,8)
line = plt.plot(x, np.sin(x**2), '-', linewidth=1)





Comments