Main Content

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

expand all

themeSet or get graphics theme (Since R2025a)
fliplightnessDarken light colors and lighten dark colors (Since R2025a)

Color Palettes and Line Styles

orderedcolorsColor palettes for visualizing multiple data series (Since R2023b)
colororderSet or query color order palette
linestyleorderSet or query line style order (Since R2024a)

Colormaps and Colorbars

colormapView and set current colormap
colorbarColorbar showing color scale
climSet colormap limits (Renamed from caxis in R2022a)
brightenBrighten or darken colormap
contrastCreate grayscale colormap for indexed image
rgbplotPlot colormap
Colormap EditorOpen colormap editor
colormaplistList available colormaps (Since R2025a)
parulaParula colormap array
turboTurbo colormap array (Since R2020b)
hsvHSV colormap array
hotHot colormap array
coolCool colormap array
springSpring colormap array
summerSummer colormap array
autumnAutumn colormap array
winterWinter colormap array
grayGray colormap array
boneBone colormap array
copperCopper colormap array
pinkPink colormap array
skySky colormap array (Since R2023a)
abyssAbyss colormap array (Since R2023b)
nebulaNebula colormap array (Since R2025a)
jetJet colormap array
linesLines colormap array
colorcubeColorcube colormap array
prismPrism colormap array
flagFlag colormap array
rgb2hexConvert RGB triplets to hexadecimal color codes (Since R2024a)
hex2rgbConvert hexadecimal color codes to RGB triplets (Since R2024a)
hsv2rgbConvert HSV colors to RGB
rgb2hsvConvert RGB colors to HSV

Properties

ColorBar PropertiesColorbar appearance and behavior

Topics

Plot Colors and Styling

Graphics Themes

Colormaps and Colorbars