matplotlib with numpy

Hi

I am trying to get matplotlib working with numpy. When trying a
simple plot, I get the following error:

/home/stefan/lib/python2.4/site-packages/matplotlib/lines.py in set_data(self, *args)
    274 my = ma.getmask(y)
    275 mask = ma.mask_or(mx, my)
--> 276 if mask is not ma.nomask:
    277 x = ma.masked_array(x, mask=mask).compressed()
    278 y = ma.masked_array(y, mask=mask).compressed()

AttributeError: 'module' object has no attribute 'nomask'

In [29]: matplotlib.__version__
Out[29]: '0.86.2'

In [30]: numpy.__version__
Out[30]: '0.9.3.1881'

I suppose ma.nomask does not exist in numpy. What is the best
workaround?

Thanks for your time.
Stéfan

MPL 0.86.2 is tested against numpy 0.9.4, so could please test with
that release and let us know if you still have problems?

Thanks,
     Charlie

···

On 2/1/06, Stefan van der Walt <stefan@...841...> wrote:

Hi

I am trying to get matplotlib working with numpy. When trying a
simple plot, I get the following error:

/home/stefan/lib/python2.4/site-packages/matplotlib/lines.py in set_data(self, *args)
    274 my = ma.getmask(y)
    275 mask = ma.mask_or(mx, my)
--> 276 if mask is not ma.nomask:
    277 x = ma.masked_array(x, mask=mask).compressed()
    278 y = ma.masked_array(y, mask=mask).compressed()

AttributeError: 'module' object has no attribute 'nomask'

In [29]: matplotlib.__version__
Out[29]: '0.86.2'

In [30]: numpy.__version__
Out[30]: '0.9.3.1881'

I suppose ma.nomask does not exist in numpy. What is the best
workaround?

Thanks for your time.
Stéfan

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmdlnk&kid3432&bid#0486&dat1642
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

Thanks, Charlie. I tried 0.9.5.2024 and it works fine.

Cheers
Stéfan

···

On Wed, Feb 01, 2006 at 10:44:59AM -0500, Charlie Moad wrote:

MPL 0.86.2 is tested against numpy 0.9.4, so could please test with
that release and let us know if you still have problems?

Thanks,
     Charlie

On 2/1/06, Stefan van der Walt <stefan@...841...> wrote:
> Hi
>
> I am trying to get matplotlib working with numpy. When trying a
> simple plot, I get the following error: