pcolor

Q: Is it possible to change the default color scale of the

    > matplotlib.matlab.pcolor plot? How? -Peter

You can define your own colormap by subclassing
matplotlib.colors.Colormap and then passing this to imshow in the cmap
argument. Note that for the most part pcolor and imshow have the same
functionality, but imshow is 1000 times faster for large grids.
Compare pcolor_demo.py and pcolor_demo2.py in the examples dir which
use pcolor and imshow respectively. Note, if you really need the
functionality of pcolor over imshow (eg you want to set some
properties on the rectangle patches), I can modify the pcolor argument
list to use your custom colormap.

If you define a new colormap (currently we have only jet and
grayscale), please send it back to the list so I can include it.

JDH

From: John Hunter [mailto:jdhunter@…4…]

Note, if you really need the
functionality of pcolor over imshow (eg you want to set some
properties on the rectangle patches), I can modify the pcolor argument
list to use your custom colormap.

I prefer pcolor over imshow - I need to represent values from a 12x12 matrix
as colors. Please modify pcolor arguments to use a custom colormap. Where /
when will I be able to obtain the modified version? -Peter