Re: [Matplotlib-users] crop white space of image

2010-05-18 Thread Ryan May
On Mon, May 17, 2010 at 6:07 AM, Ruben Moor  wrote:
> Hello,
> I plot views of 3D data without axis. The plotting results usually in plenty
> of surrounding white space. Is there an easy way to get rid of it (easy
> meaning without having to keep track of the spacial extension of my 3D data)
> ?

figure.subplots_adjust() can be used to control various margins within
the figure. When saving with savefig(), you can also specify
bbox_inches='tight' which tells it to figure out the actual bounding
box of you plot for saving, which eliminates a lot of whitespace.

Ryan

-- 
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma

--

___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] crop white space of image

2010-05-17 Thread Ruben Moor
Hello,

I plot views of 3D data without axis. The plotting results usually in plenty
of surrounding white space. Is there an easy way to get rid of it (easy
meaning without having to keep track of the spacial extension of my 3D data)
?

Thanks in advance,
Ruben
--

___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users