It seems that axes.plot() handles ‘None’ values in the

input arrays gracefully by just not plotting that point. But axes.scatter() bugs

out. Can this be fixed?

Thanks,

-Ben

It seems that axes.plot() handles ‘None’ values in the

input arrays gracefully by just not plotting that point. But axes.scatter() bugs

out. Can this be fixed?

Thanks,

-Ben

We try to support np.nan and np masked arrays to handle missing data.

The fact that None works with plot is a fortuitous consequence of the

fact that numpy converts None->NaN on a coercion to float, but it is

not something we plan on trying to support explicitly. You can easily

write your own none_to_nan function

def none_to_nan(seq):

return np.asarray(seq, float)

and if nans are failing we'll treat it as a bug in mpl

JDH

On Thu, Jul 17, 2008 at 2:35 PM, Ben Axelrod <baxelrod@...2066...> wrote:

It seems that axes.plot() handles 'None' values in the input arrays

gracefully by just not plotting that point. But axes.scatter() bugs out.

Can this be fixed?