Colormap Dropdown Menu

Create a dropdown menu to select a colormap

You are now following this Submission

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 (2026). Colormap Dropdown Menu (https://ch.mathworks.com/matlabcentral/fileexchange/43659-colormap-dropdown-menu), MATLAB Central File Exchange. Retrieved .

Acknowledgements

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

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0

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