I guess you want this.

http://docs.scipy.org/doc/numpy/reference/generated/numpy.ma.filled.html#numpy.ma.filled

-JJ


On Sat, Apr 11, 2009 at 3:36 PM, antonv <vasilescu_an...@yahoo.com> wrote:
>
> Hi all,
>
> Another noob question here. I have a large masked array that I am plotting
> with "contourf" and because of the masked array i am getting jagged edges.
> If i could replace the masked data with a value that I supply then it will
> interpolate and give me the nice feathered edges that I need.
>
> Now my question is, what is the fastest way to add the supplied data to the
> masked areas? The only way I can think is to just iterate through the whole
> array and set the value of the masked areas to the value I want but I guess
> there should be other faster ways to do that.
>
> Any help is greatly appreciated!
>
> Thanks,
> Anton
> --
> View this message in context: 
> http://www.nabble.com/convert-a-masked-array-to-a-non-masked-one--tp23004653p23004653.html
> Sent from the matplotlib - users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> High Quality Requirements in a Collaborative Environment.
> Download a free trial of Rational Requirements Composer Now!
> http://p.sf.net/sfu/www-ibm-com
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to