Products & Services Solutions Academia Support User Community Company

Learn more about Mapping Toolbox   

clabelm - Add contour labels to map contour display

Syntax

h1 = clabelm(c,h)
h1 = clabelm(c,h,v)
h1 = clabelm(c,h,'manual')
h1 = clabelm(c), h1 = clabelm(c,v)

Description

h1 = clabelm(c,h) rotates the labels and inserts them in line with the contour lines. The handles of the labels can be returned in h1.

h1 = clabelm(c,h,v) creates inline labels only for those levels specified in the vector v.

h1 = clabelm(c,h,'manual') places contour labels at locations you select with a mouse. You press the left mouse button (the only mouse button on a single-button mouse), or the space bar to label a contour at the closest location beneath the center of the cursor. Press the Return key while the cursor is within the figure window to terminate labeling. The labels are inserted in line with the contour lines.

h1 = clabelm(c), h1 = clabelm(c,v), and h1 = clabelm(c,'manual') operate as above, except that instead of rotating the labels and placing them in line with the contours, the labels are upright, and a + indicates the contour line the label is annotating.

The clabelm function adds height labels to a two-dimensional contour plot. By default, clabelm labels all displayed contours and randomly selects label positions.

c is the contour matrix as described on the contourm reference page of this guide; h is the vector of handles for the displayed contours.

Example

load geoid
axesm miller
framem
tightmap
[c,h] = contourm(geoid,geoidlegend,-100:50:80);
clabelm(c,h)

See Also

clegendm, contourm, contour3m, clabel (MATLAB function)

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS