This function produces a colorbrewer table (rgb data) for a given type, name and number of colors of the colorbrewer tables. For more information on 'colorbrewer', please visit: http://colorbrewer2.org/
The tables were generated from an MS-Excel file provided on the website
This function also allows to use a variable number of colors for each colortable by interpolating the RGB indices
Based on the original data, there is only a certain number of colors available for each color scheme. When 'ncol' is larger then the maximum number of colors originally given, an interpolation routine is called (interp1) to produce an "extended" colormap.
To see the various colormaps available according to their types and names, simply call: cbrewer()
This product includes color specifications and designs developed by Cynthia Brewer (http://colorbrewer.org/).
Charles (2021). cbrewer : colorbrewer schemes for Matlab (https://www.mathworks.com/matlabcentral/fileexchange/34087-cbrewer-colorbrewer-schemes-for-matlab), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Inspired: squink(Colors,Gamma), paruly, cbrewer2, CubeHelix Colormap Generator: Beautiful and Versatile!, ColorBrewer: Attractive and Distinctive Colormaps, Steamgraph, Intuitive RGB color values from XKCD, rgbmap color maps, MatPlotLib Perceptually Uniform Colormaps, Two-phase obstacle problem in 2D and its aposteriori error estimate, Continuum undergoing combined elasto-plasto-damage transformation., Hyper elasticity with a non-penetration condition
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!