I have been trying to use pcolor() to display a grid with discrete values
(1-4) that are changing over time. I'm generating a series of saved figures
that also include a line graph of the sums of the 4 categories. The
problem is that that mapping of numbers to colors isn't constant for the
pcolor output. I changed the array from Float32 (used out of habit) to
integer and got the same type of result. It would also be nice to be able
to use the same color mapping for both sub plots.

I think (guess) that cmap=cm.jet controls the color scheme, but it isn't
clear to me how to change that, what format it has, or why it seems to
change with repeated calls to pcolor() inside the program.


Wendell Cropper

University of Florida
School of Forest Resources and Conservation
214 Newins-Ziegler
PO Box 110410
Gainesville, FL 32611-0410

352-846-0859 phone
352-392-1707 fax