Pablo Romero wrote:
> Eric,
>  
> the GrADS interface is called 'pygrads'. 
> it was developed by arlindo da silva of the 'opengrads' project; a project 
> aimed at extending & enhancing the capabilities of grads by adding 
> 'extensions' to the core grads engine.
>  
> Many users are switching to plotting with pygrads due to the fact that 
> matplotlib is a much richer, more powerful, more mature/extensive plotting 
> environment. 
>  
> So, GrADS users can manipulate gridded data in grads, export through pygrads, 
> and create nicer/more elaborate plots using matplotlib ;)
>  
> http://opengrads.org/wiki/index.php?title=Python_Interface_to_GrADS
>  
>  
>  
> as for the solution you offered, I tried doing the following:
>  
> cs = m.contourf(X,Y,Z.filled(),Lv,norm=norm,cmap=plt.cm.jet)
>  
> but I still got a plot with the '0.0' (land) areas plotted as 
> 'white'/missing?.
>  
> Does it matter that the output I provided from the "Z.mask" command showed 
> all 'false' for the mask array?

All this is strange again.  I did not expect Z.mask to be all False.

Try

import numpy as np
Znp = np.array(Z.filled(0.0))

and then contour that instead of Z.  If that doesn't work, then check 
the corner values of Znp:

Znp[0,0], Znp[-1,0] etc.

Eric

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to