Skip to content

Commit 2c59ec6

Browse files
ksundenmeeseeksmachine
authored andcommitted
Backport PR matplotlib#28414: Clean up obsolete widget code
1 parent 7d35221 commit 2c59ec6

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

lib/matplotlib/widgets.py

+1-14
Original file line numberDiff line numberDiff line change
@@ -1001,14 +1001,8 @@ class CheckButtons(AxesWidget):
10011001
----------
10021002
ax : `~matplotlib.axes.Axes`
10031003
The parent Axes for the widget.
1004-
10051004
labels : list of `~matplotlib.text.Text`
1006-
1007-
rectangles : list of `~matplotlib.patches.Rectangle`
1008-
1009-
lines : list of (`.Line2D`, `.Line2D`) pairs
1010-
List of lines for the x's in the checkboxes. These lines exist for
1011-
each box, but have ``set_visible(False)`` when its box is not checked.
1005+
The text label objects of the check buttons.
10121006
"""
10131007

10141008
def __init__(self, ax, labels, actives=None, *, useblit=True,
@@ -1571,8 +1565,6 @@ class RadioButtons(AxesWidget):
15711565
The color of the selected button.
15721566
labels : list of `.Text`
15731567
The button labels.
1574-
circles : list of `~.patches.Circle`
1575-
The buttons.
15761568
value_selected : str
15771569
The label text of the currently selected button.
15781570
index_selected : int
@@ -1751,11 +1743,6 @@ def activecolor(self, activecolor):
17511743
colors._check_color_like(activecolor=activecolor)
17521744
self._activecolor = activecolor
17531745
self.set_radio_props({'facecolor': activecolor})
1754-
# Make sure the deprecated version is updated.
1755-
# Remove once circles is removed.
1756-
labels = [label.get_text() for label in self.labels]
1757-
with cbook._setattr_cm(self, eventson=False):
1758-
self.set_active(labels.index(self.value_selected))
17591746

17601747
def set_active(self, index):
17611748
"""

0 commit comments

Comments
 (0)