Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fb2240f

Browse files
committed
Update clabel comment.
Mostly because BlockingContourLabeler stopped existing a while ago, so update that part. Also reword the rest, while at it.
1 parent 112a225 commit fb2240f

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

lib/matplotlib/contour.py

Lines 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)