contourcmap
Contour colormap and colorbar for current axes
Syntax
contourcmap(cmapstr)
contourcmap(cmapstr,cdelta)
contourcmap(...,Name,Value)
h = contourcmap(...)
Description
contourcmap(
updates
the figure's colormap for the current axes with the colormap specified
by cmapstr
)cmapstr
. If the axes contains Mapping Toolbox™ contour
objects, the resultant colormap contains the same number of colors
as the original colormap. Otherwise, the resultant colormap contains
ten colors.
contourcmap(
updates
the figure's colormap with colors varying according to cmapstr
,cdelta
)cdelta
.
If the axes contains Mapping Toolbox contour objects, the value
of cdelta
is ignored.
contourcmap(...,
allows you to add a
colorbar and control the properties of the colorbar. Parameter names can be abbreviated
and are case-insensitive.Name,Value
)
returns
a handle to the colorbar axes.h
= contourcmap(...)
Input Arguments
|
A character vector that specifies a colormap. Valid entries
for |
|
A scalar or vector. If |
Name-Value Arguments
Specify optional pairs of arguments as
Name1=Value1,...,NameN=ValueN
, where Name
is
the argument name and Value
is the corresponding value.
Name-value arguments must appear after other arguments, but the order of the
pairs does not matter.
Before R2021a, use commas to separate each name and value, and enclose
Name
in quotes.
|
Character vector with values Default: |
|
Character vector specifying the location of the colorbar. Permissible
values are Default: |
|
Character vector specifying the alignment of the labels in the
colorbar. Permissible values are |
|
Handle of the graphics object which is used to determine the
color limits for the colormap. The Default: |
|
Title of the colorbar axes, specified as a character vector. |
|
|
|
|
|
|
Output Arguments
|
A handle to the colorbar axes. |