Difference between revisions of "Short example of using matplotlib within jupyter"
From Simson Garfinkel
Jump to navigationJump 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 07: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: