I would like to know how I can pass an array of levels and also a colormap to the contour() function and have the levels span the entire colormap. example...
if I do the following....
I would expect that contours that are in the higher levels (i.e., levels above value '14' in my levels array) would be plotted with lighter colors in the cm.jet spectrum; the greens, yellows,oranges,reds, etc.
However, contourf is simply breaking up the lower,"dark blue" half of the cm.jet spectrum into small slices, and spreading all of my levels throughout only the bottom half of cm.jet.
I followed this tutorial:
that shows how to create a "discrete" colormap, but this also didnt work; the contourf function again simply sliced up the lower, blue colors and spread my all of my layers across the "blues" in my discrete colormap.
If I use a colors array instead of a colormap, I can achieve what I want. However, Id like to be able to use a colormap so that I dont have to manually create color arrays everytime that I want to change my colorscheme.
So, how can I force contour() to spread my levels across THE WHOLE spectrum of a colormap?
Express your personality in color! Preview and select themes for Hotmail®.