padding when saving to a file

Ken Schutte <kts.lists@...287...> writes:

Is it possible to control (actually remove) the amount of white space
padded to a figure when saving to a file? For example, the white
border found on the output of something like the following:

[...]

ax = fig.add_subplot(111,frameon=False)

Use fig.add_axes([0,0,1,1],frameon=False) instead - add_subplot reserves
some space for a title, axis labels, etc.

···

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

Great, that works. I have noticed that when I use ticks and labels,
the border sometimes cuts things off (for small images or large text).
But, I can just adjust the axes position for now.

thanks,
Ken

···

On Tue, Mar 31, 2009 at 2:16 AM, Jouni K. Seppänen <jks@...397...> wrote:

Use fig.add_axes([0,0,1,1],frameon=False) instead - add_subplot reserves
some space for a title, axis labels, etc.