Main Content


Choose Colormap tool


Use the imcolormaptool function to create a Choose Colormap tool. The Choose Colormap tool is an interactive colormap selection tool that allows you to change the colormap of a figure by selecting a colormap from a list of MATLAB® colormap functions or workspace variables, or by entering a custom MATLAB expression.

Choose Colormap Tool

imcolormaptool launches the Choose Colormap tool in a separate figure, which is associated with the current figure.


imcolormaptool(h) launches the Choose Colormap tool using h as the target figure. h must contain either a grayscale or an indexed image.

htool = imcolormaptool(___) returns a handle to the Choose Colormap tool figure, htool.


collapse all

h = figure;

Input Arguments

collapse all

Graphics object, specified as a figure or axes.

Output Arguments

collapse all

Handle to Choose Colormap tool figure, returned as a handle.

Version History

Introduced in R2009a