10000 Remove widget API deprecated in 3.3. · matplotlib/matplotlib@19da8c3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 19da8c3

Browse files
committed
Remove widget API deprecated in 3.3.
1 parent aec7bb4 commit 19da8c3

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
@@ -72,3 +72,16 @@ The *recursionlimit* parameter of `matplotlib.test` has been removed.
7272
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7373
This method has been removed. If needed, directly assign to the ``params``
7474
attribute of the Substitution object.
75+
76+
``widgets.TextBox.params_to_disable``
77+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
78+
This attribute has been removed.
79+
80+
`.widgets.SubplotTool` callbacks and axes
81+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
82+
The ``funcleft``, ``funcright``, ``funcbottom``, ``functop``, ``funcwspace``,
83+
and ``funchspace`` methods of `.widgets.SubplotTool` have been removed.
84+
85+
The ``axleft``, ``axright``, ``axbottom``, ``axtop``, ``axwspace``, and
86+
``axhspace`` attributes of `.widgets.SubplotTool` have been removed. Access
87+
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(
@@ -1430,55 +1428,6 @@ def _on_reset(self, event):
14301428
event.canvas.draw() # Redraw the subplottool canvas.
14311429
self._on_slider_changed(None) # Apply changes to the target window.
14321430

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

14831432
class Cursor(AxesWidget):
14841433
"""

0 commit comments

Comments
 (0)
0