discussion of bugs in cookbook

While reviewing the new scipy website ( http://new.scipy.org/Wiki ) to see when we can turn it "live", I've come across the following matplotlib discussion in the matplotlib cookbook.

I'd like 2 ask things:

1) can we fix the issues described? (are they already fixed?)

2) can we keep bug discussions off the cookbook?

Sorry to be such a cookbook-is-a-cookbook-not-a-bug-discussion-venue enforcer, but I think it's important we keep the cookbook as newbie-friendly as possible. I think discussions of bugs at the very top of the cookbook are going to scare newbies away.

Here's the "offending" bit of wiki text from http://new.scipy.org/Wiki/Cookbook/Matplotlib :

= Runtime error with recent numarray (1.5.0) =

I'm not sure where this goes, but matplotlib-0.86.2 contains the line

if mask is not ma.nomask:

in lines.py (line 276). Recent versions of numarray do not have nomask, the correct line should be:

if mask is not None:

Update: it seems this is only going to fail if you have numpy set as your default numeric library, because the code in matplotlib/numerix/ma/__init__.py defines nomask EXCEPT when you also have numpy installed. Does matplotlib work with numpy now? I had gotten that nomask error and thought I needed numarray.

Here's the "offending" bit of wiki text from

http://new.scipy.org/Wiki/Cookbook/Matplotlib :

= Runtime error with recent numarray (1.5.0) =

I'm not sure where this goes, but matplotlib-0.86.2 contains the line

if mask is not ma.nomask:

in lines.py (line 276). Recent versions of numarray do not have

nomask, the correct line should be:

if mask is not None:

Update: it seems this is only going to fail if you have numpy set as

your default numeric library, because the code in
matplotlib/numerix/ma/__init__.py defines nomask EXCEPT when you also
have numpy installed. Does matplotlib work with numpy now? I had gotten
that nomask error and thought I needed numarray.

Andrew,

The most recent matplotlib should work with all three. Travis made the changes you noted. First the change to ma.nomask was made to make mpl work with numpy, which has nomask, then the changes to ma/__init__.py so that it would continue working with Numeric and numarray. I have also tested it with all three.

Keeping bug discussions out of the cookbook is a good idea!

Eric