MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / clabel

Method clabel

lib/matplotlib/axes/_axes.py:7171–7189  ·  view source on GitHub ↗

Label a contour plot. Adds labels to line contours in given `.ContourSet`. Parameters ---------- CS : `.ContourSet` instance Line contours to label. levels : array-like, optional A list of level values, that should be labele

(self, CS, levels=None, **kwargs)

Source from the content-addressed store, hash-verified

7169 return contours
7170
7171 def clabel(self, CS, levels=None, **kwargs):
7172 """
7173 Label a contour plot.
7174
7175 Adds labels to line contours in given `.ContourSet`.
7176
7177 Parameters
7178 ----------
7179 CS : `.ContourSet` instance
7180 Line contours to label.
7181
7182 levels : array-like, optional
7183 A list of level values, that should be labeled. The list must be
7184 a subset of ``CS.levels``. If not given, all levels are labeled.
7185
7186 **kwargs
7187 All other parameters are documented in `~.ContourLabeler.clabel`.
7188 """
7189 return CS.clabel(levels, **kwargs)
7190
7191 #### Data analysis
7192

Callers 15

clabelFunction · 0.45
test_clabelMethod · 0.45
test_patheffect2Function · 0.45
test_collectionFunction · 0.45
test_labelsFunction · 0.45
test_label_contour_startFunction · 0.45

Calls

no outgoing calls

Tested by 15

test_clabelMethod · 0.36
test_patheffect2Function · 0.36
test_collectionFunction · 0.36
test_labelsFunction · 0.36
test_label_contour_startFunction · 0.36
test_clabel_zorderFunction · 0.36