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

Skip to content

Commit a21e9b8

Browse files
QuLogictimhoffm
andauthored
Apply suggestions from code review
Co-authored-by: Tim Hoffmann <[email protected]>
1 parent 28116fa commit a21e9b8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/matplotlib/widgets.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1200,7 +1200,7 @@ def set_check_props(self, props):
12001200

12011201
def set_active(self, index, state=None):
12021202
"""
1203-
Toggle (activate or deactivate) a check button by index.
1203+
Modify the state of a check button by index.
12041204
12051205
Callbacks will be triggered if :attr:`eventson` is True.
12061206
@@ -1210,8 +1210,8 @@ def set_active(self, index, state=None):
12101210
Index of the check button to toggle.
12111211
12121212
state : bool, optional
1213-
Sets the target state of the button. If a boolean value, set the
1214-
state explicitly. If no value is provided, the state is toggled.
1213+
If a boolean value, set the state explicitly. If no value is
1214+
provided, the state is toggled.
12151215
12161216
Raises
12171217
------
@@ -1270,7 +1270,7 @@ def _init_status(self, actives):
12701270
for ec, active in zip(self._active_check_colors, actives)])
12711271

12721272
def clear(self):
1273-
"""Clear all checkboxes."""
1273+
"""Uncheck all checkboxes."""
12741274

12751275
self._checks.set_facecolor(['none'] * len(self._active_check_colors))
12761276

@@ -1902,7 +1902,7 @@ def set_active(self, index):
19021902
self._observers.process('clicked', self.labels[index].get_text())
19031903

19041904
def clear(self):
1905-
"""Reset active button."""
1905+
"""Reset the active button to the initially active one."""
19061906
self.set_active(self._initial_active)
19071907

19081908
def on_clicked(self, func):

0 commit comments

Comments
 (0)