Skip to content

Commit 3665cdd

Browse files
committed
Remove widget API deprecated in 3.3.
1 parent 2cdbe7a commit 3665cdd

File tree

2 files changed

+13
-51
lines changed

2 files changed

+13
-51
lines changed

doc/api/next_api_changes/removals/20465-ES.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,16 @@ The *recursionlimit* parameter of `matplotlib.test` has been removed.
7070
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7171
This method has been removed. If needed, directly assign to the ``params``
7272
attribute of the Substitution object.
73+
74+
``widgets.TextBox.params_to_disable``
75+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
76+
This attribute has been removed.
77+
78+
`.widgets.SubplotTool` callbacks and axes
79+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
80+
The ``funcleft``, ``funcright``, ``funcbottom``, ``functop``, ``funcwspace``,
81+
and ``funchspace`` methods of `.widgets.SubplotTool` have been removed.
82+
83+
The ``axleft``, ``axright``, ``axbottom``, ``axtop``, ``axwspace``, and
84+
``axhspace`` attributes of `.widgets.SubplotTool` have been removed. Access
85+
the ``ax`` attribute of the corresponding slider, if needed.

lib/matplotlib/widgets.py

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -984,8 +984,6 @@ class TextBox(AxesWidget):
984984
The color of the text box when hovering.
985985
"""
986986

987-
params_to_disable = _api.deprecated("3.3")(property(
988-
lambda self: [key for key in mpl.rcParams if 'keymap' in key]))
989987
cnt = _api.deprecated("3.4")(property( # Not real, but close enough.
990988
lambda self: sum(len(d) for d in self._observers.callbacks.values())))
991989
change_observers = _api.deprecated("3.4")(property(
@@ -1427,55 +1425,6 @@ def _on_reset(self, event):
14271425
event.canvas.draw() # Redraw the subplottool canvas.
14281426
self._on_slider_changed(None) # Apply changes to the target window.
14291427

1430-
axleft = _api.deprecated("3.3")(
1431-
property(lambda self: self.sliderleft.ax))
1432-
axright = _api.deprecated("3.3")(
1433-
property(lambda self: self.sliderright.ax))
1434-
axbottom = _api.deprecated("3.3")(
1435-
property(lambda self: self.sliderbottom.ax))
1436-
axtop = _api.deprecated("3.3")(
1437-
property(lambda self: self.slidertop.ax))
1438-
axwspace = _api.deprecated("3.3")(
1439-
property(lambda self: self.sliderwspace.ax))
1440-
axhspace = _api.deprecated("3.3")(
1441-
property(lambda self: self.sliderhspace.ax))
1442-
1443-
@_api.deprecated("3.3")
1444-
def funcleft(self, val):
1445-
self.targetfig.subplots_adjust(left=val)
1446-
if self.drawon:
1447-
self.targetfig.canvas.draw()
1448-
1449-
@_api.deprecated("3.3")
1450-
def funcright(self, val):
1451-
self.targetfig.subplots_adjust(right=val)
1452-
if self.drawon:
1453-
self.targetfig.canvas.draw()
1454-
1455-
@_api.deprecated("3.3")
1456-
def funcbottom(self, val):
1457-
self.targetfig.subplots_adjust(bottom=val)
1458-
if self.drawon:
1459-
self.targetfig.canvas.draw()
1460-
1461-
@_api.deprecated("3.3")
1462-
def functop(self, val):
1463-
self.targetfig.subplots_adjust(top=val)
1464-
if self.drawon:
1465-
self.targetfig.canvas.draw()
1466-
1467-
@_api.deprecated("3.3")
1468-
def funcwspace(self, val):
1469-
self.targetfig.subplots_adjust(wspace=val)
1470-
if self.drawon:
1471-
self.targetfig.canvas.draw()
1472-
1473-
@_api.deprecated("3.3")
1474-
def funchspace(self, val):
1475-
self.targetfig.subplots_adjust(hspace=val)
1476-
if self.drawon:
1477-
self.targetfig.canvas.draw()
1478-
14791428

14801429
class Cursor(AxesWidget):
14811430
"""

0 commit comments

Comments
 (0)