Color and Styling
Choose colors, colormaps, line styles, and figure themes
Specify themes for figures, customize colors and line styles for 2-D plots, and select colormaps for surfaces, patches, and indexed images. Display colorbars to show the relationship between the colors of a colormap and your data.
Functions
Properties
ColorBar Properties | Colorbar appearance and behavior |
Topics
Plot Colors and Styling
- Specify Plot Colors
Customize colors in plots. - Specify Line and Marker Appearance in Plots
Customize the lines and markers in a plot. - Control Automatic Selection of Colors and Line Styles in Plots
Control the colors and line styles used by plotting functions. - Interactively Customize Plot Appearance
Interactively modify the properties of graphics objects in a figure, and reproduce the style using generated code.
Graphics Themes
- Graphics and App Themes
Control the theme of a figure, and customize the colors of elements in the figure. (Since R2025a) - Design Graphics and Apps for Different Themes
Customize the colors of plots and apps, and ensure consistent results on systems configured for different themes. (Since R2025a)
Colormaps and Colorbars
- 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.