Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e974bf0

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

File tree

Expand file treeCollapse file tree

2 files changed

+10
-3
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+10
-3
lines changed
+5Lines 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

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_qt5.py
+5-3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.