Re: [Matplotlib-users] bug in cm.py

2007-12-07 Thread Vincent Schut
Michael Droettboom wrote: Thanks, that helps a lot. It seems to be working now -- I've committed this in r4643. Cheers, Mike Mike, thanks a lot for the rapid action! Bugs squashed. Cheers, Vincent. - SF.Net email

[Matplotlib-users] bug in cm.py

2007-12-06 Thread Vincent Schut
Hi, there is a bug in cm.py (svn): it references npy (first time: line 58), but npy is never imported. Cheers, VS. - SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to

Re: [Matplotlib-users] bug in cm.py

2007-12-06 Thread Michael Droettboom
Thanks. I have corrected this in SVN. Cheers, Mike Vincent Schut wrote: Hi, there is a bug in cm.py (svn): it references npy (first time: line 58), but npy is never imported. Cheers, VS. - SF.Net email is

Re: [Matplotlib-users] bug in cm.py

2007-12-06 Thread Vincent Schut
Thanks. However, now I get a different error: Traceback (most recent call last): File /usr/lib64/python2.5/site-packages/matplotlib/backends/backend_gtk.py, line 331, in expose_event self._render_figure(self._pixmap, w, h) File

Re: [Matplotlib-users] bug in cm.py

2007-12-06 Thread Michael Droettboom
Can you send your script that triggers this bug? I wasn't the author of this code, so I don't know how to get that path to execute -- but I'm happy to work through your example until it's working. (I suspect the intention here was m, n = x.shape[:2], but I can't test it.) Cheers, Mike

Re: [Matplotlib-users] bug in cm.py

2007-12-06 Thread Vincent Schut
Hmm, that's a bit hard, it's not really what one would call a self-contained example... the bug triggers when I load a rgb numpy float array with imshow (only with floats, not with ints). After some thought and trial, it's simple: these lines already trigger the error: #==

Re: [Matplotlib-users] bug in cm.py

2007-12-06 Thread Michael Droettboom
Thanks, that helps a lot. It seems to be working now -- I've committed this in r4643. Cheers, Mike Vincent Schut wrote: Hmm, that's a bit hard, it's not really what one would call a self-contained example... the bug triggers when I load a rgb numpy float array with imshow (only with

Re: [Matplotlib-users] bug in cm.py

2007-12-06 Thread Eric Firing
Mike, Thanks for fixing those two errors that I introduced in 4374. I'm sorry that I evidently did not test that code path, or even inspect it carefully. Eric Michael Droettboom wrote: Thanks, that helps a lot. It seems to be working now -- I've committed this in r4643. Cheers, Mike