Re: [matplotlib-devel] Should Path objects have an initial MOVETO? (was: error with basemap and pdf)

2009-10-22 Thread Michael Droettboom
Jouni K. Seppänen wrote: > Jeff Whitaker writes: > > >> Jouni: That test script now crashes with: >> >> File "/Users/jwhitaker/lib/python/matplotlib/backends/backend_pdf.py", >> line 1214, in pathOperations >> raise ValueError, 'Path lacks initial MOVETO' >> ValueError: Path lacks initi

Re: [matplotlib-devel] Should Path objects have an initial MOVETO?

2009-10-22 Thread Michael Droettboom
The bug was actually in the path simplification. In really degenerate cases (bravo for finding it) of paths that are completely outside of the clip region, it would create a path with a single LINETO command. This is now fixed in SVN on the branch and trunk. Mike Michael Droettboom wrote: > J

Re: [matplotlib-devel] default "q" shortcut?

2009-10-22 Thread Jae-Joon Lee
Can you post your patch so that others can review? Regards, -JJ On Wed, Oct 21, 2009 at 3:23 AM, Georg Brandl wrote: > Hi, > > one thing I missed when I switched from Gnuplot to matplotlib was that I > can't press "q" to close a window but have to use the window manager; in > one environment I

Re: [matplotlib-devel] default "q" shortcut?

2009-10-22 Thread Georg Brandl
I don't have a patch. I just wrote a key handler that runs the snippet I gave when "q" is pressed. I hope there's a better way to do it anyway :) Georg Jae-Joon Lee schrieb: > Can you post your patch so that others can review? > > Regards, > > -JJ > > > On Wed, Oct 21, 2009 at 3:23 AM, Geor

[matplotlib-devel] Artist default alpha value

2009-10-22 Thread James Evans
All, I have a question regarding the default alpha value for an Artist. Why is it 1.0 instead of None? The color conversion code takes into account if alpha is None and having it default to something other than None makes it impossible for any Patch to have a fill_color specified as an RGBA

Re: [matplotlib-devel] Reverse colormaps regression

2009-10-22 Thread Eric Firing
Eric Bruning wrote: > I'm seeing problems with reversed colormaps (attached code and image). > The problem seems to be with colormaps that are specified functionally > or that don't have equal numbers of red, green, and blue entries. For > instance, 'flag', 'rainbow', and 'gist_earth'. > > Further

Re: [matplotlib-devel] Reverse colormaps regression

2009-10-22 Thread Eric Firing
Eric Bruning wrote: > I'm seeing problems with reversed colormaps (attached code and image). > The problem seems to be with colormaps that are specified functionally > or that don't have equal numbers of red, green, and blue entries. For > instance, 'flag', 'rainbow', and 'gist_earth'. > > Further