cmocean perceptually-uniform colormaps
Updated 7 Sep 2021
These colormaps were developed by Kristen Thyng using viscm. They are perceptually uniform, as color should be when it serves as a numeric axis.
If these colormaps are useful for you, please consider citing our paper:
Thyng, K.M., C.A. Greene, R.D. Hetland, H.M. Zimmerle, and S.F. DiMarco. 2016. True colors of oceanography: Guidelines for effective and accurate colormap selection. Oceanography 29(3):9–13. http://dx.doi.org/10.5670/oceanog.2016.66
Thyng, Kristen, et al. “True Colors of Oceanography: Guidelines for Effective and Accurate Colormap Selection.” Oceanography, vol. 29, no. 3, The Oceanography Society, Sept. 2016, pp. 9–13, doi:10.5670/oceanog.2016.66.
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Inspired by: Oceanographic Data Visualized with MATLAB, CMRmap.m, Color Palette Tables (.cpt) for Matlab, Modified CMRmap, CubeHelix Colormap Generator: Beautiful and Versatile!, ColorBrewer: Attractive and Distinctive Colormaps, Mixing (MX) Oceanographic Toolbox for EM-APEX float data, jLab: A Matlab toolbox for data analysis, Argo Toolbox
Inspired: xcorr3, EOF, crameri perceptually uniform scientific colormaps, Cyclic color map, anomaly, How to estimate subglacial water routes, Intuitive RGB color values from XKCD, MatPlotLib Perceptually Uniform Colormaps, Daily Antarctic sea ice concentration, Arctic Sea Ice
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Versions that use the GitHub default branch cannot be downloaded
port to github
Updated the image.
Added new rain, topo, diff, and tarn colormaps.
Modified input parser, following a suggestion by Phelype Oleinik. Also, now, if no outputs are specified it sets the colormap of the current axes via colormap(gca,cmap) whereas previously it was simply colormap(cmap).
The 'zero' option for diverging colormaps has been extended to a 'pivot' syntax, which allows setting a pivot point to any value, zero or otherwise.
Added a link to our Oceanography paper. Also added the feature to simply type "cmocean" to bring up a window showing colormap options.