Re: [Matplotlib-users] New contourf() drawing polygon boundaries for some reason?

2009-06-16 Thread Michiel de Hoon
, 6/15/09, Michael Droettboom md...@stsci.edu wrote: From: Michael Droettboom md...@stsci.edu Subject: Re: [Matplotlib-users] New contourf() drawing polygon boundaries for some reason? To: z...@amateurearthling.org, matplotlib-users matplotlib-users@lists.sourceforge.net, Michiel de Hoon

Re: [Matplotlib-users] New contourf() drawing polygon boundaries for some reason?

2009-06-15 Thread Zane Selvans
Yes. By far the worst of these behaviors is the macosx GUI output. I could see the other ones just being the way it's supposed to look. Here's a summary: backend: macosx; path.simplify: (false|true) GUI = black borders to drawn polygons (incl. contour region crossing lines, very bad)

Re: [Matplotlib-users] New contourf() drawing polygon boundaries for some reason?

2009-06-15 Thread Michael Droettboom
Thanks for the thorough investigation. Michiel: can you look into why the macosx backend is drawing the strokes around the polygons? Probably as simple as inadvertently ignoring an argument. I'll look into the path simplification-related issues. Cheers, Mike On 06/15/2009 03:29 PM, Zane

Re: [Matplotlib-users] New contourf() drawing polygon boundaries for some reason?

2009-06-14 Thread Michael Droettboom
On 06/12/2009 05:27 PM, Zane Selvans wrote: If I set path.simplify: False, the shape of the gaps between the filled polygons does change. Instead of being irregular, it becomes an infinitessimally thin gap of uniform width, allowing the (in this case white) background to show through. Just

Re: [Matplotlib-users] New contourf() drawing polygon boundaries for some reason?

2009-06-12 Thread Michael Droettboom
So you see this behavior if you switch to the Agg backend? That's the backend used to generate the images in the gallery. If there's a difference there, that would seem to suggest some tweaking of the macosx backend (which is still relatively new) is in order. Mike Zane Selvans wrote: I

Re: [Matplotlib-users] New contourf() drawing polygon boundaries for some reason?

2009-06-12 Thread Zane Selvans
Um, yeah. So my response got bounced because of the attachment. Take 2: For some reason my script bombed when I switched to the Agg backend, trying to display to the screen (it said Figure has no method show()) So I output the plot as both a PDF and a PNG (still having backend: agg in my

Re: [Matplotlib-users] New contourf() drawing polygon boundaries for some reason?

2009-06-12 Thread Michael Droettboom
Shot in the dark here, but what if you set the rcParam path.simplify to False? There have been recent changes to that code. Also, since the Agg backend doesn't have an associated GUI, you need to use the savefig() command and provide a filename, rather than using show(). Cheers, Mike Zane

Re: [Matplotlib-users] New contourf() drawing polygon boundaries for some reason?

2009-06-12 Thread Zane Selvans
If I set path.simplify: False, the shape of the gaps between the filled polygons does change. Instead of being irregular, it becomes an infinitessimally thin gap of uniform width, allowing the (in this case white) background to show through. In both of these cases (path.simplify: True|False),

Re: [Matplotlib-users] New contourf() drawing polygon boundaries for some reason?

2009-06-12 Thread Zane Selvans
I switched back to using the macosx backend, and it turns out that the thin black lines surrounding the polygons (including crossing the filled contour regions from one closed contour to another) only get displayed in the GUI. PDF and PNG output look fine. Zane On Fri, Jun 12, 2009 at 2:27 PM,

[Matplotlib-users] New contourf() drawing polygon boundaries for some reason?

2009-06-11 Thread Zane Selvans
I just installed the latest SciPy Superpack in order to get access to the scipy.spatial.KDTree class, and discovered that for some reason now when I use contourf() lines get drawn at the boundaries between the filled contours. Additionally, there is always a single vertical line crossing from