You can use the rect
argument to axes()
to set the (left,bottom,right,top)
extent of the axes within the figure canvas. These are specified in normalized canvas units between 0 and 1.
import matplotlib.pyplot as pp
fig = pp.figure()
ax = fig.add_axes((0,0,1,1))
ax.plot(range(10))