Colormap Dropdown Menu

Create a dropdown menu to select a colormap
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 (, MATLAB Central File Exchange. Retrieved .

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

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

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