View and set current colormap
colormap
sets the colormap for the current
figure to one of the predefined colormaps. If you set the colormap for the
figure, then axes and charts in the figure use the same colormap. The new
colormap is the same length (number of colors) as the current colormap. When you
use this syntax, you cannot specify a custom length for the colormap. To learn
more about colormaps, see What Is a Colormap?map
To control the limits of the colormap, and how those limits relate to the range of your data,
use the caxis
function.