Re: [Matplotlib-users] difference between plot and scatter

2008-07-17 Thread John Hunter
On Thu, Jul 17, 2008 at 2:35 PM, Ben Axelrod <[EMAIL PROTECTED]> 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?

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

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] difference between plot and scatter

2008-07-17 Thread Ben Axelrod
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
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users