Add contour labels to map contour display
clabelm(C) labels all contours displayed in the current contour plot. Labels are upright and displayed with '+' symbols. clabelm randomly selects label positions.
clabelm(___,Name,Value) specifies the text object properties and the 'LabelSpacing' contourgroup property, using one or more Name,Value pair arguments, in addition to any of the input arguments in previous syntaxes.
clabelm(C,'manual') places contour labels at locations you select with a mouse. Click the mouse or press the space bar to label the contour closest to the center of the crosshair. Press the Return key while the cursor is within the figure window to terminate labeling.
Contour matrix containing the data that defines the contour lines. C is returned by the contourm, contourfm, or contour3m functions.
Handle to the contourgroup object returned by thecontourm, contourfm, or contour3m functions.
Contour level values, specified as a row or column vector of individual values.
Specify optional comma-separated pairs of Name,Value arguments. 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.
Spacing between labels on each contour line, specified as the comma-separated pair consisting of 'LabelSpacing' and a scalar. Specify the label spacing in points, where 1 point = 1/72 inch.
Handles of the text objects that clabelm creates. The UserData properties of the text objects contain the contour values displayed.
If you call clabelm without the h argument, text_handles also contains the handles of line objects used to create the '+' symbols.