trvrm.github.io

Basic IPython Plotting

Tue 20 May 2014


Things have changed a bit since IPython 1

Now apparently we want to manually specify the use of inline matplotlib rather than enable globally in the server.

http://nbviewer.ipython.org/github/ipython/ipython/blob/1.x/examples/notebooks/Part%203%20-%20Plotting%20with%20Matplotlib.ipynb

%matplotlib inline
import matplotlib.pyplot as plt
import numpy as np
x = np.linspace(0, 3*np.pi, 500)
plt.plot(x, np.sin(x**2))
plt.title('A simple chirp');
basic plotting example