colorbar

Purpose

Display color bar (color scale).

Synopsis

colorbar('vert')
colorbar('horiz')
colorbar(h)
colorbar
h = colorbar(...)

Description

colorbar('vert') appends a vertical color bar to the current axes, resizing the axes to make room for the color bar. colorbar works with both two-dimensional and three-dimensional plots.

colorbar('horiz') appends a horizontal color bar to the current axes.

colorbar(h) places the color bar in the axes h. The color bar is horizontal if the width of the axes is greater than its height.

colorbar with no arguments adds a new vertical color bar or updates an existing one.

h = colorbar(...) returns a handle to the color bar axes.

See Also

colormap

(c) Copyright 1994 by The MathWorks, Inc.