@@ -75,12 +75,14 @@ def clabel(self, *args, **kwargs):
7575
7676 only labels contours listed in *v*.
7777
78- Optional keyword arguments:
78+ Parameters
79+ ----------
80+ fontsize : string or float, optional
81+ Size in points or relative size e.g., 'smaller', 'x-large'
7982
80- *fontsize* :
81- size in points or relative size e.g., 'smaller', 'x-large'
83+ colors :
84+ Color of each label
8285
83- *colors*:
8486 - if *None*, the color of each label matches the color of
8587 the corresponding contour
8688
@@ -91,47 +93,50 @@ def clabel(self, *args, **kwargs):
9193 different labels will be plotted in different colors in the order
9294 specified
9395
94- *inline*:
95- controls whether the underlying contour is removed or
96- not. Default is *True*.
96+ inline : bool, optional
97+ If ``True`` the underlying contour is removed where the label is
98+ placed. Default is ``True``.
99+
100+ inline_spacing : float, optional
101+ Space in pixels to leave on each side of label when
102+ placing inline. Defaults to 5.
103+
104+ This spacing will be exact for labels at locations where the
105+ contour is straight, less so for labels on curved contours.
97106
98- *inline_spacing*:
99- space in pixels to leave on each side of label when
100- placing inline. Defaults to 5. This spacing will be
101- exact for labels at locations where the contour is
102- straight, less so for labels on curved contours.
107+ fmt : string or dict, optional
108+ A format string for the label. Default is '%1.3f'
103109
104- *fmt*:
105- a format string for the label. Default is '%1.3f'
106110 Alternatively, this can be a dictionary matching contour
107111 levels with arbitrary strings to use for each contour level
108112 (i.e., fmt[level]=string), or it can be any callable, such
109113 as a :class:`~matplotlib.ticker.Formatter` instance, that
110114 returns a string when called with a numeric contour level.
111115
112- * manual*:
113- if * True* , contour labels will be placed manually using
114- mouse clicks. Click the first button near a contour to
116+ manual : bool or iterable, optional
117+ If `` True`` , contour labels will be placed manually using
118+ mouse clicks. Click the first button near a contour to
115119 add a label, click the second button (or potentially both
116- mouse buttons at once) to finish adding labels. The third
120+ mouse buttons at once) to finish adding labels. The third
117121 button can be used to remove the last label added, but
118- only if labels are not inline. Alternatively, the keyboard
122+ only if labels are not inline. Alternatively, the keyboard
119123 can be used to select label locations (enter to end label
120124 placement, delete or backspace act like the third mouse button,
121125 and any other key will select a label location).
122126
123- *manual* can be an iterable object of x,y tuples. Contour labels
124- will be created as if mouse is clicked at each x,y positions.
127+ *manual* can also be an iterable object of x,y tuples.
128+ Contour labels will be created as if mouse is clicked at each
129+ x,y positions.
125130
126- * rightside_up*:
127- if * True* (default) , label rotations will always be plus
128- or minus 90 degrees from level.
131+ rightside_up : bool, optional
132+ If `` True`` , label rotations will always be plus
133+ or minus 90 degrees from level. Default is ``True``.
129134
130- * use_clabeltext*:
131- if * True* (default is False) , ClabelText class (instead of
132- matplotlib.Text) is used to create labels. ClabelText
133- recalculates rotation angles of texts during the drawing time,
134- therefore this can be used if aspect of the axes changes.
135+ use_clabeltext : bool, optional
136+ If `` True`` , ClabelText class (instead of matplotlib.Text)
137+ is used to create labels. ClabelText recalculates rotation angles
138+ of texts during the drawing time, therefore this can be used if
139+ aspect of the axes changes. Default is ``False`` .
135140 """
136141
137142 """
0 commit comments