Skip to content

caxis

Get or set color-axis limits.

caxis([cmin cmax])
caxis('auto')
lim = caxis

Sets the data-value range that maps to the full extent of the colormap. Useful for keeping color scales consistent across multiple plots showing the same physical quantity.

caxis([-5 5])
  • colormap — Get or set the colormap of the current figure.
  • colorbar — Add a color-scale legend to the figure.