Christian Meesters wrote:
>> Christian:  That should work, if you created the masked array 
>> correctly.  Why are you creating the mask with data=='NA'?  I suspect 
>> that this always evaluates to False, so you don't get a mask.  You 
>> probably want to check for a numeric value, not a string.  For example:
>>     
> Thanks a lot, Jeff!
>
> Yes, the non-numerical comparison was indeed causing problems - although
> I don't understand why.
>
> However, I can easily inject numerical non-sense values into the array.
> As to the 'NA': The data are an R output file. As I don't like R too
> much, I'm falling back to Python.
>
> Christian
>
>   
Christian:  What type of array is that (data.dtype)?  I don't see how a 
numpy array can have values equal to 'NA', unless it is an array of 
strings.  In that case, it would not be plottable anyway. 

-Jeff

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to