In [1]:
from pylab import *
In [2]:
x = linspace(0, 5, 10)
y = x ** 2
In [3]:
x
Out[3]:
In [4]:
fig = plt.figure()
In [6]:
%pylab inline
In [9]:
axes = fig.add_axes([0,10,-1.5,1.5])
axes.plot(x,y,'r')
Out[9]:
In [10]:
plt.show()
In [ ]: