ColorBrewer: Attractive and Distinctive Colormaps
- Consists of just one convenient M-file (no .mat files or file clutter).
- Has no third-party file dependencies.
- Has no special toolbox dependencies.
- Requires just the standard ColorBrewer colorscheme name to select the colorscheme.
- Accepts the colorscheme name as a string scalar or a character vector.
- Supports all ColorBrewer colorschemes.
- Outputs a MATLAB standard N-by-3 numeric RGB array.
- Uses a default length the same as MATLAB's colormap functions.
- Is compatible with all MATLAB functions that use colormaps (eg: CONTOURCMAP).
- Includes the option to reverse the colormap color sequence.
- Does not break ColorBrewer's Apache license conditions (unlike many on MATLAB File Exchange).
Cite As
Stephen23 (2026). ColorBrewer: Attractive and Distinctive Colormaps (https://github.com/DrosteEffect/BrewerMap/releases/tag/3.2.7), GitHub. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Image Processing and Computer Vision > Image Processing Toolbox > Image Segmentation and Analysis > Image Segmentation > L*a*b* Color Space >
Tags
Acknowledgements
Inspired: newcolorbar: multiple colormaps in the same axes, squink(Colors,Gamma), paruly, cbrewer2, Cyclic color map, Maximally Distinct Color Generator, Convert between RGB and Color Names, jetwhite(Colours), cmocean perceptually-uniform colormaps, How to estimate subglacial water routes, HCP (HeatmapCovariatePlot), SU Firing Modulation Frequency
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
| Version | Published | Release Notes | |
|---|---|---|---|
| 3.2.7 | See release notes for this release on GitHub: https://github.com/DrosteEffect/BrewerMap/releases/tag/3.2.7 |
||
| 3.2.5 | See release notes for this release on GitHub: https://github.com/DrosteEffect/BrewerMap/releases/tag/3.2.5 |
||
| 3.2.4 | See release notes for this release on GitHub: https://github.com/DrosteEffect/BrewerMap/releases/tag/3.2.4 |
||
| 3.2.3 | See release notes for this release on GitHub: https://github.com/DrosteEffect/BrewerMap/releases/tag/3.2.3 |
||
| 3.2.2 | See release notes for this release on GitHub: https://github.com/DrosteEffect/BrewerMap/releases/tag/3.2.2 |
||
| 3.2.1 | * update repository |
|
|
| 3.2.0 | * Default size to suit HG2.
|
|
|
| 3.1.0 | * Add error IDs.
|
|
|
| 3.0.0.2 | * Update description. |
|
|
| 3.0.0.1 | * Add NaN input option.
|
|
|
| 3.0.0.0 | * Interpolate in Lab colorspace. |
|
|
| 2.2.0.0 | * Update FEX blurb.
|
|
|
| 2.1.0.0 | * Improve interpolation method.
|
|
|
| 2.0.0.0 | * Improve interpolation method. |
||
| 1.7.0.0 | - Re-insert that disappearing newline at after the first paragraph. Why does this happen, MATLAB? |
|
|
| 1.5.0.0 | * Change to GitHub version, complete with Apache license. |
|
|
| 1.4.0.0 | - Downloadable as toolbox |
||
| 1.3.0.0 | - Simplify spreadsheet downloading instructions. |
||
| 1.2.0.0 | - Allow case-insensitive scheme selection.
|
||
| 1.1.0.0 | - Add third output: colorscheme type as a string.
|
||
| 1.0.0.0 |
