removing all padding / white space around plot

Allen Beye Riddell <allen.riddell@...287...> writes:

I'd like to remove the whitespace, padding, offset, etc on the left and
right of the plot as I'm writing the entire thing to a jpg. I've turned
the frame, axes, ticks off, but the space still remains.

[...]

    ax = fig.add_subplot(111)

Replace this line by

      ax = fig.add_axes((0,0,1,1))

The default subplot axes leave some space for tick labels etc., but
this gives you axes spanning the full figure.

···

--
Jouni K. Sepp�nen
http://www.iki.fi/jks