Hi: How many colors do images created via:
> imshow(Zi, cmap=cm.jet)
> (Zi = some data matrix) have?
> Are these true color? 256? Is there a simple way to define
> these things?
The following image parameters can be configured from your rc file
### images
image.aspect : free # free | preserve
image.interpolation : bilinear # see help(imshow) for options
image.cmap : jet # gray | jet
image.lut : 256 # the size of the colormap lookup table
image.origin : upper # lower | upper
The image.lut parameter controls the size of the lookup table. You
can change the default in the rc file, or dynamically in a single
python session using the rc function. Eg,
# default cmap is now 100 level grayscale by cm.jet and cm.gray unaffected
>>> rc('image', lut=100, cmap='gray')
>>> imshow(X) # show X with default cmap
But you can also create your own color maps at any time using the
cm.get_cmap function
>>> jet512 = cm.get_cmap('jet', 512)
>> imshow(X, cmap=jet512)
Should work.
JDH