crameri perceptually uniform scientific colormaps

version 1.09 (1.72 MB) by Chad Greene
Perceptually uniform scientific colormaps from Fabio Crameri.


Updated 12 Nov 2022

From GitHub

View License on GitHub

View crameri perceptually uniform scientific colormaps on File Exchange


A simple Matlab function for Fabio Crameri's perceptually uniform scientific colormaps.


crameri without any inputs displays the options for colormaps.

crameri ColormapName sets the colormap of the current axes.

cmap = crameri('ColormapName') returns a 256x3 colormap. For a visual depiction of valid colormap names, type crameri.

cmap = crameri('-ColormapName') a minus sign preceeding any ColormapName flips the order of the colormap.

cmap = crameri(...,NLevels) specifies a number of levels in the colormap. Default value is 256.

cmap = crameri(...,'pivot',PivotValue) centers a diverging colormap such that white corresponds to a given value and maximum extents are set using current caxis limits. If no PivotValue is set, 0 is assumed.


Crameri, Fabio. (2021). Scientific colour maps (7.0.1). Zenodo.

Cite As

Crameri, Fabio. Scientific Colour Maps. Zenodo, 2019, doi:10.5281/ZENODO.1243862.

View more styles

Crameri, Fabio. “Geodynamic Diagnostics, Scientific Visualisation and StagLab 3.0.” Geoscientific Model Development, vol. 11, no. 6, Copernicus GmbH, June 2018, pp. 2541–62, doi:10.5194/gmd-11-2541-2018.

View more styles
MATLAB Release Compatibility
Created with R2017b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired by: cmocean perceptually-uniform colormaps

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.