CBAR Display full or partial colorbar, choose numeric range

Usage: >> cbar
>> cbar(type)
>> cbar(type,colors)
>> cbar(axhandle,colors)
>> cbar(axhandle,colors, minmax)

Inputs:
type   
'vert','horiz', or 0 -> default {'vert')
axhandle   
handle of axes to place colormap in
colors   
vector of colormap indices to display, or number n -> display colors [1:end-n]
minmax   
[min, max] range of values to label on colorbar

Author: Colin Humphries, CNL / Salk Institute, Feb. 1998

See also: colorbar()

See the matlab file cbar.m (may require other functions)

Back to functions