Darren Dale wrote:

> I think nan's and inf's are a fact of life. They sometimes pop up in my work, 
> and would prefer that matplotlib handle them properly. But I haven't 
> contributed much to the actual plotting functions and don't know much about 
> the advantages of masked arrays, so I'll defer to you.

Darren,

I would like to return to this.  It may make good sense for us to use 
something like x=ma.masked_where(~npy.isfinite(x), x) at the outermost 
level of argument processing, in place of x = ma.asarray(x).  It will 
add a few msec, which is OK if it is done once or a few times per plot. 
  It is not good if it happens hundreds of times per plot, though, so it 
is acceptable only if there is a clear separation between outer argument 
processing--the most public part of the API--and internal functions.

The method suggested above actually won't work with numpy.ma--only with 
  maskedarray.

I have to put this off for a while longer.

Eric


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to