In [11]:
import matplotlib.pyplot

In [12]:
# This line configures matplotlib to show figures embedded in the notebook, 
# instead of opening a new window for each figure. More about that later. 
# If you are using an old version of IPython, try using '%pylab inline' instead.
%matplotlib inline

In [13]:
x = linspace(0, 5, 10)
y = x ** 2

In [17]:
figure()
plot(x, y, 'r')
xlabel('x')
ylabel('y')
title('title')
show();



In [16]:
subplot(1,2,1)
plot(x, y, 'r--')
subplot(1,2,2)
plot(y, x, 'g*-');



In [ ]: