This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

imcolormaptool

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

Syntax

imcolormaptool
imcolormaptool(h)
htool = imcolormaptool(___)

Description

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.

Examples

Open Choose Colormap Tool

h = figure;
imshow('cameraman.tif');
imcolormaptool(h); 

Input Arguments

collapse all

Handle to a figure or axes, specified as a handle.

Output Arguments

collapse all

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

See Also

| |

Introduced in R2009a