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

Skip to content

Commit e974bf0

Browse files
authored
Merge pull request matplotlib#13712 from anntzer/adjwindow
Deprecate NavigationToolbar2QT.adj_window (unused and always None).
2 parents 45deaad + 1d8e52e commit e974bf0

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Deprecations
2+
````````````
3+
4+
The (unused and always None) ``NavigationToolbar2QT.adj_window`` attribute is
5+
deprecated.

lib/matplotlib/backends/backend_qt5.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -724,9 +724,6 @@ def _init_toolbar(self):
724724
labelAction = self.addWidget(self.locLabel)
725725
labelAction.setVisible(True)
726726

727-
# reference holder for subplots_adjust window
728-
self.adj_window = None
729-
730727
# Esthetic adjustments - we need to set these explicitly in PyQt5
731728
# otherwise the layout looks different - but we don't want to set it if
732729
# not using HiDPI icons otherwise they look worse than before.
@@ -739,6 +736,11 @@ def _init_toolbar(self):
739736
def buttons(self):
740737
return {}
741738

739+
@cbook.deprecated("3.1")
740+
@property
741+
def adj_window(self):
742+
return None
743+
742744
if is_pyqt5():
743745
# For some reason, self.setMinimumHeight doesn't seem to carry over to
744746
# the actual sizeHint, so override it instead in order to make the

0 commit comments

Comments
 (0)