Set colormap limits
caxis(
sets the colormap
limits for the current axes. limits
)limits
is a two-element vector
of the form [cmin cmax]
. All values in the colormap indexing array that are less
than or equal to cmin
map to the first row in the colormap.
All values that are greater than or equal to cmax
map to the
last row in the colormap. All values between cmin
and
cmax
map linearly to the intermediate rows of the colormap.
Note
The caxis
function only affects graphics objects
that have the CDataMapping
property set to
'scaled'
. It does not affect graphics objects
that use truecolor or have the CDataMapping
set to
'direct'
.
caxis('auto')
enables automatic limit updates when values
in the colormap indexing array change. This is the default behavior. The
caxis auto
command is an alternative form of this
syntax.
caxis('manual')
disables automatic limit updates. The
caxis manual
command is an alternative form of this
syntax.