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.
University of Florida
School of Forest Resources and Conservation
PO Box 110410
Gainesville, FL 32611-0410