Skip to content

clabel

plot · scripts/plot/appearance/clabel.m

: h = clabel (c)
: h = clabel (c, v)
: h = clabel (…, prop, val, …)

Label the contour lines of the contour matrix c.

c is the matrix returned by contourc or contour. Without v every level is labelled, otherwise only the levels that equal an element of v. The labels are text objects in the current axes showing the level; the column vector of their handles is returned (empty if nothing was labelled). Property/value pairs are applied to the text objects; "LabelSpacing" (points, default 144) sets the approximate distance between labels along a line.