[Matplotlib-users] NaN bugs

2008-07-25 Thread Ben Axelrod
I have noticed 2 bugs having to do with NaN handling in the scatter() function. And one other bug that seems to be in numpy. 1. The min and max for the axes are not computed properly when there are NaNs in the data. Example: import pylab as pl import numpy as np x = np.asarray([0, 1, 2, 3,

Re: [Matplotlib-users] NaN bugs

2008-07-25 Thread John Hunter
On Fri, Jul 25, 2008 at 10:08 AM, Ben Axelrod [EMAIL PROTECTED] wrote: I have noticed 2 bugs having to do with NaN handling in the scatter() I believe this is fixed in svn (0.98 branch) -- I tested your first example and it behaved as expected. I f you have a build environment, please test the

Re: [Matplotlib-users] NaN bugs

2008-07-25 Thread Ryan May
Ben Axelrod wrote: 3. Both of the above mentioned bandaid fixes suffer from some bug (I think in numpy). Where the min() and max() of a numpy array where the first value is NaN, bugs out: x = np.asarray([None, 1, 2, 3, 4, 5, 6, 7, 8, 9], float) y = np.asarray([0, 1, 2, 3, 4, 5,