Reverse colormaps regression

I'm seeing problems with reversed colormaps (attached code and image).
The problem seems to be with colormaps that are specified functionally
or that don't have equal numbers of red, green, and blue entries. For
instance, 'flag', 'rainbow', and 'gist_earth'.

Furthermore, 'gist_rainbow_r' and 'terrain_r' don't plot at all with
the attached code.

I presume this is a regression from earlier behavior, since quite a
few colormaps are affected. svn shows some cleanup to the colormap
code this summer. Can someone with more familiarity with that code
point to the problem?

Thanks,
Eric

reverse_cmap_regression.py (597 Bytes)

colormaps.png

Eric Bruning wrote:

I'm seeing problems with reversed colormaps (attached code and image).
The problem seems to be with colormaps that are specified functionally
or that don't have equal numbers of red, green, and blue entries. For
instance, 'flag', 'rainbow', and 'gist_earth'.

Furthermore, 'gist_rainbow_r' and 'terrain_r' don't plot at all with
the attached code.

I presume this is a regression from earlier behavior, since quite a
few colormaps are affected. svn shows some cleanup to the colormap
code this summer. Can someone with more familiarity with that code
point to the problem?

I'll take care of it. Thanks for the bug report.

Eric

···

Thanks,
Eric

Eric Bruning wrote:

I'm seeing problems with reversed colormaps (attached code and image).
The problem seems to be with colormaps that are specified functionally
or that don't have equal numbers of red, green, and blue entries. For
instance, 'flag', 'rainbow', and 'gist_earth'.

Furthermore, 'gist_rainbow_r' and 'terrain_r' don't plot at all with
the attached code.

I presume this is a regression from earlier behavior, since quite a
few colormaps are affected. svn shows some cleanup to the colormap
code this summer. Can someone with more familiarity with that code
point to the problem?

Fixed in svn 7902.

Eric

···

Thanks,
Eric

------------------------------------------------------------------------

------------------------------------------------------------------------

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference

------------------------------------------------------------------------

_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
matplotlib-devel List Signup and Options