Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 75c1fd3

Browse filesBrowse files
authored
Merge pull request #27119 from anntzer/cd
Update clabel comment.
2 parents eca4a34 + fb2240f commit 75c1fd3
Copy full SHA for 75c1fd3

File tree

Expand file treeCollapse file tree

1 file changed

+6
-8
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-8
lines changed

‎lib/matplotlib/contour.py

Copy file name to clipboardExpand all lines: lib/matplotlib/contour.py
+6-8Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -157,21 +157,19 @@ def clabel(self, levels=None, *,
157157
A list of `.Text` instances for the labels.
158158
"""
159159

160-
# clabel basically takes the input arguments and uses them to
161-
# add a list of "label specific" attributes to the ContourSet
162-
# object. These attributes are all of the form label* and names
163-
# should be fairly self explanatory.
160+
# Based on the input arguments, clabel() adds a list of "label
161+
# specific" attributes to the ContourSet object. These attributes are
162+
# all of the form label* and names should be fairly self explanatory.
164163
#
165-
# Once these attributes are set, clabel passes control to the
166-
# labels method (case of automatic label placement) or
167-
# `BlockingContourLabeler` (case of manual label placement).
164+
# Once these attributes are set, clabel passes control to the labels()
165+
# method (for automatic label placement) or blocking_input_loop and
166+
# _contour_labeler_event_handler (for manual label placement).
168167

169168
if fmt is None:
170169
fmt = ticker.ScalarFormatter(useOffset=False)
171170
fmt.create_dummy_axis()
172171
self.labelFmt = fmt
173172
self._use_clabeltext = use_clabeltext
174-
# Detect if manual selection is desired and remove from argument list.
175173
self.labelManual = manual
176174
self.rightside_up = rightside_up
177175
self._clabel_zorder = 2 + self.get_zorder() if zorder is None else zorder

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.