CubeHelix Colormap Generator

Use the cubehelix algorithm to generate colormaps suitable for grayscale conversion
4.5K Downloads
Updated 2 Jul 2022

Cite As

Stephen23 (2026). CubeHelix Colormap Generator (https://github.com/DrosteEffect/CubeHelix), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2010b
Compatible with R2009b and later releases
Platform Compatibility
Windows macOS Linux
Categories
Find more on Color and Styling in Help Center and MATLAB Answers

Versions that use the GitHub default branch cannot be downloaded

Version Published Release Notes
2.3.1

* Use GitHub README.

2.3.0

* default size to suit HG2.
* improve error messages.
* include PRESET_COLORMAP
* remove CUBEHELIX_FIND

2.2.0

* Add error IDs.
* Improve input checking.

2.1.0.1

* Simplfiy CUBEHELIX_VIEW figure creation.

2.1.0.0

* Replace that awful automatically-generated title with the original title.
* Update FEX blurb.

2.0.0.0

* Move to GitHub repository.
Changes to "cubehelix_view":
* Simplify internal graphics-handle management.
* Simplify figure layout.

1.8.0.0

* Minor edit to blurb, consistent parameter names.

1.7.0.0

* Use correct color terminology: rename "hue" -> "sat", and "start" -> "hue".

1.6.0.0

* Change input name from <rng> to <yrange> to avoid conflict with inbuilt function.
* Simplify input checking.
* Simplify internal passing of variables to local functions.

1.5.0.0

* Include Domain option.
* Include 3D RGB-cube viewer.
* More robust parameter finder.

1.4.0.0

- Improve input argument checking.

1.3.0.0

- Improve input argument checking.
- Viewer figure now displays warnings for clipped RGB or non-monotonic grayscale values.
- Demo now also varies the range values.

1.2.0.0

- Allow parameters to be input as a vector.
- Improve viewer background.
- Better demonstration-mode: random examples in the viewer.

1.1.0.0

- Add range sliders to viewer.
- Slightly robuster finder algorithm.
- Show some nice examples in the illustration!

1.0.0.0

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.