| Contents | Index |
contourcmap(cmapstr)
contourcmap(cmapstr,cdelta)
contourcmap(...,Name,Value)
h = contourcmap(...)
contourcmap(cmapstr) updates the figure's colormap for the current axes with the colormap specified by 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(cmapstr,cdelta) updates the figure's colormap with colors varying according to cdelta. If the axes contains Mapping Toolbox contour objects, the value of cdelta is ignored.
contourcmap(...,Name,Value) allows you to add a colorbar and control the colorbar's properties. Parameter names can be abbreviated and are case-insensitive.
h = contourcmap(...) returns a handle to the colorbar axes.
Specify optional comma-separated pairs of Name,Value arguments, where Name is the argument name and Value is the corresponding value. Name must appear inside single quotes (' '). You can specify several name and value pair arguments in any order as Name1,Value1,...,NameN,ValueN.
h |
A handle to the colorbar axes. |
Display a world map with a colormap representing contour intervals in meters:
load topo
R = georasterref('RasterSize', size(topo), ...
'Latlim', [-90 90], 'Lonlim', [0 360]);
figure('Color','white')
worldmap(topo, R)
contourfm(topo, R);
contourcmap('jet', 'Colorbar', 'on', ...
'Location', 'horizontal', ...
'TitleString', 'Contour Intervals in Meters');

Display a world map with a colormap in which colors vary at a step size of 2000:
load topo
load coast
R = georasterref('RasterSize', size(topo), ...
'Latlim', [-90 90], 'Lonlim', [0 360]);
figure('Color','white')
worldmap(topo, R)
geoshow(topo, R, 'DisplayType', 'texturemap');
contourcmap('summer', 2000, 'Colorbar', 'on', ...
'Location', 'horizontal', ...
'TitleString', 'Contour Intervals in Meters');
geoshow(lat, long, 'Color', 'black')

clabelm | clegendm | colormap | contour3m | contourcbar | contourfm | contourm

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |