colormap
Get or set the colormap of the current figure.
Syntax
Section titled “Syntax”colormap(name)colormap(C)C = colormapDescription
Section titled “Description”Sets the colormap used for surface / image / scatter color encoding. name is a string like 'jet', 'parula', 'hot', 'cool', 'gray', 'viridis', etc.; C is an N × 3 matrix of RGB rows. Without argument, returns the current colormap.
Examples
Section titled “Examples”colormap('parula')colormap(jet(64))