Colormap Dropdown Menu

Create a dropdown menu to select a colormap
830 Downloads
Updated 15 Sep 2017

View License

This is an example of a way to create a dropdown menu to select a colormap in a GUI figure.
The colorbars are displayed in the dropdown menu next to the colormap name using HTML.

Cite As

Seth Kenner (2024). Colormap Dropdown Menu (https://www.mathworks.com/matlabcentral/fileexchange/43659-colormap-dropdown-menu), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2013a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Colormaps in Help Center and MATLAB Answers
Acknowledgements

Inspired by: rgbconv.m, MATLAB Plot Gallery - Colormap Chart

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0

A new version of the rgbconv.m function was updated and to handle certain cases.