Anyone?

On Tue, Jul 28, 2009 at 3:23 PM, Gewton Jhames <gjhames@gmail.com> wrote:
Guys, there is the code.
On Tue, Jul 28, 2009 at 3:13 PM, Gewton Jhames <gjhames@gmail.com> wrote:
Jae-Joon Lee, savefig("file.png", bbox_inches="tight") doesn't work too.


On Mon, Jul 27, 2009 at 7:00 PM, Jae-Joon Lee <lee.j.joon@gmail.com> wrote:
On Mon, Jul 27, 2009 at 4:06 PM, Gewton Jhames<gjhames@gmail.com> wrote:
> How to "trim the canvas" of the image generated? It's transparent, but still
> have a "padding", if it would be cropped, I can safe almost 200px!. I have
> attached a file to this email to show it, the background of the graph was
> set to red only to you see the padding.

As John suggested, you can adjust the subplot params. This adjusts the
area occupied by the axes, while the figure size (canvas size) is
fixed.

The subplot params can be automatically adjusted.

http://matplotlib.sourceforge.net/faq/howto_faq.html?highlight=automatic%20adjust#automatically-make-room-for-tick-labels


On the other hand, there is some crude support for trimming, i.e.,
reducing the figure size while the axes area fixed.

savefig("file.png", bbox_inches="tight")

Note that the figure size of the saved output is only affected. This
does not change the figure displayed on the screen.

Regards,

-JJ