Re: [matplotlib-devel] Transparent backgrounds for savefig

2008-06-25 Thread Eric Firing
Michael Droettboom wrote: >>get_frame and get_patch deprecated - just use "patch" and "frame", >> formerly "axesPatch" and "axesFrame". We'll add a deprecation warning >> to get_frame and keep axesPatch and axesFrame around as aliases. >> >> Michael -- IIRC you added the axesFrame. Was this

Re: [matplotlib-devel] Transparent backgrounds for savefig

2008-06-25 Thread Michael Droettboom
John Hunter wrote: > On Wed, Jun 25, 2008 at 9:23 AM, John Hunter <[EMAIL PROTECTED]> wrote: > >> On Wed, Jun 25, 2008 at 9:09 AM, Michael Droettboom <[EMAIL PROTECTED]> >> wrote: >> >>> "rectangle" might be a bad name for "axesPatch" since it can be a circle for >>> polar plots, and ellip

Re: [matplotlib-devel] Transparent backgrounds for savefig

2008-06-25 Thread John Hunter
On Wed, Jun 25, 2008 at 9:23 AM, John Hunter <[EMAIL PROTECTED]> wrote: > On Wed, Jun 25, 2008 at 9:09 AM, Michael Droettboom <[EMAIL PROTECTED]> wrote: >> "rectangle" might be a bad name for "axesPatch" since it can be a circle for >> polar plots, and ellipse for geo plots etc. > > Ahh yes, mind s

Re: [matplotlib-devel] Transparent backgrounds for savefig

2008-06-25 Thread John Hunter
On Wed, Jun 25, 2008 at 9:09 AM, Michael Droettboom <[EMAIL PROTECTED]> wrote: > "rectangle" might be a bad name for "axesPatch" since it can be a circle for > polar plots, and ellipse for geo plots etc. Ahh yes, mind still mushy even after a good night's sleep. "patch" or "background" I feel abo

Re: [matplotlib-devel] Transparent backgrounds for savefig

2008-06-25 Thread Michael Droettboom
"rectangle" might be a bad name for "axesPatch" since it can be a circle for polar plots, and ellipse for geo plots etc. Cheers, Mike John Hunter wrote: > On Wed, Jun 25, 2008 at 8:25 AM, Stéfan van der Walt <[EMAIL PROTECTED]> > wrote: > >> 2008/6/25 Michael Droettboom <[EMAIL PROTECTED]>:

Re: [matplotlib-devel] Transparent backgrounds for savefig

2008-06-25 Thread John Hunter
On Wed, Jun 25, 2008 at 8:25 AM, Stéfan van der Walt <[EMAIL PROTECTED]> wrote: > 2008/6/25 Michael Droettboom <[EMAIL PROTECTED]>: >> Maybe this should be made an option on the "transparent" kwarg to savefig, >> something like: >> >> transparent = 'figure' | 'figure_and_axes' >> >> Or is that jus

Re: [matplotlib-devel] Transparent backgrounds for savefig

2008-06-25 Thread Stéfan van der Walt
2008/6/25 Michael Droettboom <[EMAIL PROTECTED]>: > Maybe this should be made an option on the "transparent" kwarg to savefig, > something like: > > transparent = 'figure' | 'figure_and_axes' > > Or is that just making things too complicated? Those options would both be very handy. In the meanti

Re: [matplotlib-devel] Transparent backgrounds for savefig

2008-06-25 Thread Michael Droettboom
Something similar was added to SVN yesterday. Pass "transparent=True" to savefig. This will set both the figure rectangle and the axes rectangles to transparent. If you just want a transparent figure rectangle, you can do: fig().figurePatch.set_alpha(0.0) Maybe this should be made an optio

[matplotlib-devel] Transparent backgrounds for savefig

2008-06-25 Thread Stéfan van der Walt
Hi all, I'm generating plots for a document with a non-white background, and I need the outer rectangle (the one is normally gray on the screen) to be transparent. Savefig doesn't seem to have such an option: is it possible to do it already, and if not, would there be any interest in a patch? Re