Colormaps define the color scheme for many types of visualizations, such as surfaces and patches. Colorbars illustrate the relationship between the colors of the colormap and your data. Colormaps are three-column arrays containing RGB triplets in which each row defines a distinct color. The correspondence between the colors and your data values depends on the type of visualization you create. You can let MATLAB® control this correspondence, or you can customize it. For more information, see Change Color Scheme Using a Colormap.
Colormaps and Colorbars
|Parula colormap array|
|Turbo colormap array|
|HSV colormap array|
|Hot colormap array|
|Cool colormap array|
|Spring colormap array|
|Summer colormap array|
|Autumn colormap array|
|Winter colormap array|
|Gray colormap array|
|Bone colormap array|
|Copper colormap array|
|Pink colormap array|
|Lines colormap array|
|Jet colormap array|
|Colorcube colormap array|
|Prism colormap array|
|Flag colormap array|
|ColorBar Properties||Colorbar appearance and behavior|
- Creating Colorbars
Add a colorbar to your chart and customize its appearance.
- Change Color Scheme Using a Colormap
Switch between different predefined colormaps, or create a custom colormap.
- How Surface Plot Data Relates to a Colormap
Change the relationship between surface plot data and the colormap.
- How Image Data Relates to a Colormap
Control how pixel values map to the colormap.
- How Patch Data Relates to a Colormap
Control the relationship between patches and the colormap.
- Control Colormap Limits
Set the limits for scaling your data to a colormap.
- Differences Between Colormaps and Truecolor
Decide whether to use a colormap or truecolor in your visualizations.