Re: [matplotlib-devel] Strange moray patterns with pcolor

2008-06-25 Thread Eric Firing
Michael Droettboom wrote: > Ahh -- 0.91 avoided this by using non-antialiased rendering by default > for pcolor as well as pcolormesh. That's probably what Rob is seeing > when he went from 0.91 to 0.98. I suspected that. > > Of course, non-antialiased rendering has its own quality limitation

Re: [matplotlib-devel] Strange moray patterns with pcolor

2008-06-25 Thread Michael Droettboom
Ahh -- 0.91 avoided this by using non-antialiased rendering by default for pcolor as well as pcolormesh. That's probably what Rob is seeing when he went from 0.91 to 0.98. Of course, non-antialiased rendering has its own quality limitations, and it only applies to the bitmap backends. The moi

Re: [matplotlib-devel] Strange moray patterns with pcolor

2008-06-25 Thread Michael Droettboom
Ok -- sorry about that. It looked pretty good on the quadmesh_demo example, but I suppose that's just by accident due to the nature of the data. By this assessment, we should probably back out this hack in pcolormesh as well. Curiously, though, Rob says this is new behavior... Cheers, Mike

Re: [matplotlib-devel] Strange moray patterns with pcolor

2008-06-25 Thread Eric Firing
Michael Droettboom wrote: Rob Hetland wrote: When I do a pcolor, there are white lines between the patches that cause strange moray patterns, even when saved to a png. The attached sample shows what I mean. Notice the strange coffee-cup ring, where the pattern goes away. This is new behavio

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] Strange moray patterns with pcolor

2008-06-25 Thread Michael Droettboom
Rob Hetland wrote: > > When I do a pcolor, there are white lines between the patches that > cause strange moray patterns, even when saved to a png. The attached > sample shows what I mean. Notice the strange coffee-cup ring, where > the pattern goes away. This is new behavior. Unfortunately,

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