David Huard wrote:
> Hi,
> 
> calling show returns the following error using the numpy maskedarray 
> branch. The figure is a quiver plot on a basemap instance.

I haven't personally done any testing with the maskedarray branch 
myself, though I know Eric Firing has done a little.

> /usr/local/lib64/python2.5/site-packages/matplotlib/path.pyc in 
> __init__(self, vertices, codes)
>     118                         len(vertices), self.code_type)
>     119                     codes[0] = self.MOVETO
> --> 120                 vertices = ma.compress(npy.invert(mask1d), 
> vertices, 0)
>     121                 vertices = npy.asarray(vertices)
>     122                 codes = npy.where(npy.concatenate((mask1d[-1:], 
> mask1d[:-1])),
> 
> AttributeError: 'module' object has no attribute 'compress'

This seems to work if you change it to npy.compress -- for both the 
"default" ma and the maskedarray branch.  I'll go ahead and commit this 
change, though there may be performance implications.

Cheers,
Mike

-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
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