# Difference between revisions of "Short example of using matplotlib within jupyter"

Jump to navigation
Jump to search

(Created page with "Enter this: %matplotlib inline import matplotlib import numpy as np import matplotlib.pyplot as plt x = np.linspace(1,10) line, = plt.plot(x, np.sin(x...") |
m |
||

Line 11: | Line 11: | ||

[[File:Jupyter-matplotlib-demo.png|500px]] | [[File:Jupyter-matplotlib-demo.png|500px]] | ||

+ | |||

+ | =References= | ||

+ | * http://stackoverflow.com/questions/19410042/how-to-make-ipython-notebook-matplotlib-plot-inline |

## Latest revision as of 08:32, 15 June 2016

Enter this:

%matplotlib inline import matplotlib import numpy as np import matplotlib.pyplot as plt x = np.linspace(1,10) line, = plt.plot(x, np.sin(x), "--", linewidth=2)

And here is what it looks like: