[matplotlib-devel] bug in path simplification

2008-08-11 Thread Eric Firing
Mike, In looking into the handling of inf and nan, I think I have found some complexities and inefficiencies that are easily eliminated (and I have committed some such changes; others are pending), but in the process I have also found what I am fairly sure is a bug in the path simplification

Re: [matplotlib-devel] bug in path simplification

2008-08-11 Thread Michael Droettboom
The simplification code was written with the assumption that all of the codes are LINETO. That is, it has no MOVETOs or CURVEs. There is code in backend_agg.h that tries to make sure not to run simplification when this is the case (see should_simplify -- it returns false whenever there is a c

Re: [matplotlib-devel] bug in path simplification

2008-08-11 Thread Michael Droettboom
Michael Droettboom wrote: > So the easy fix is to turn off simplification when the array contains > NaNs (and bonus points if we can cache that so we don't have to run > through the list to find NaNs ahead of time). > On further thought, this shouldn't be too difficult -- so I'll go ahead and

Re: [matplotlib-devel] bug in path simplification

2008-08-11 Thread Michael Droettboom
Simplification is now turned off whenever there are nonfinite elements in the vertices array. The "should_simplify" determination is now made in Python (to make it easier to tweak and cache). I also committed your patch to handle masked arrays in the same way as arrays-with-nonfinite values (w

Re: [matplotlib-devel] irregularly spaced grids and imshow....

2008-08-11 Thread Grégory Lielens
On Fri, 2008-08-08 at 16:05 +0200, Grégory Lielens wrote: > Hello everybody, > > I have sent this message to the user group, but thinking of it, it may be more > relevant to the development mailing list...so here it is again. > > > > We are looking for the best way to plot a waterfall diagram i

Re: [matplotlib-devel] Gcc, Solaris and putchar() problems

2008-08-11 Thread Peter C. Norton
Michael, I'm going to see if there is a fixincludes route to fixing this, but in case there isn't, is adding an additional name to the TTStreamWriter, eg. TTStreamWriter::put_char, out of the question? Thanks, -Peter On Thu, Jul 31, 2008 at 09:08:18AM -0400, Michael Droettboom wrote: > (Sorry f