Carol Leger wrote:
> Hi folks,
>
> I have encountered a problem using colorbar and set_under with a color
> map that has only 32 colors. The downward arrow is not filled with the
> correct color. If 64 colors are used, the arrow is filled correctly. I
> actually want 8 colors.
>
> The test code is essentially image_masked.py from the 0.90.0 examples.
>
> if I use: palette = cm.get_cmap("gray", 64)
> the plot is OK.
> if I use: palette = cm.get_cmap("gray", 32)
> it is not OK.
>
> In both cases, the upper arrow is the correct color.
>
> I am using matplotlib version 0.90.0.
Carol,
It works for me even with 8 colors, using the svn version of mpl. There
have been a lot of changes between 0.90.0 and the present svn trunk
(including a heart transplant by Mike D.), but I would not have expected
any changes that would change the behavior you describe. I can't think
of any way a bug would have made a break point in behavior between 32
and 64 colors. I'm baffled.
Can you install and run the svn version? Or the latest release (which
does not include the new heart)? I also tried the svn maintenance
branch, which is virtually identical to the last release, and it works
the same as the trunk.
Eric
-------------------------------------------------------------------------
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-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users