Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Colormaps

View and modify colormap, control color scaling, add colorbar

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.

Functions

colormap View and set current colormap
colorbar Colorbar showing color scale
rgbplot Plot colormap
colormapeditor Open colormap editor
brighten Brighten or darken colormap
contrast Grayscale colormap for contrast enhancement
caxis Color axis scaling
spinmap Spin colormap
hsv2rgb Convert HSV colormap to RGB colormap
rgb2hsv Convert RGB colormap to HSV colormap
parula Parula colormap array
jet Jet colormap array
hsv HSV colormap array
hot Hot colormap array
cool Cool colormap array
spring Spring colormap array
summer Summer colormap array
autumn Autumn colormap array
winter Winter colormap array
gray Gray colormap array
bone Bone colormap array
copper Copper colormap array
pink Pink colormap array
lines Lines colormap array
colorcube Colorcube colormap array
prism Prism colormap array
flag Flag colormap array

Properties

Colorbar Properties Control colorbar appearance and behavior

Topics

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.

Was this topic helpful?