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 ba019f7

Browse filesBrowse files
authored
Merge pull request #7409 from OceanWolf/fix-tbar-None
FIX: MPL should not use new tool manager unless explicited asked for. Closes #7404
2 parents 1d4244f + ba9ce9e commit ba019f7
Copy full SHA for ba019f7

File tree

Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed

‎lib/matplotlib/backends/backend_gtk3.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_gtk3.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ def _get_toolbar(self):
495495

496496
def _get_toolmanager(self):
497497
# must be initialised after toolbar has been setted
498-
if rcParams['toolbar'] != 'toolbar2':
498+
if rcParams['toolbar'] == 'toolmanager':
499499
toolmanager = ToolManager(self.canvas.figure)
500500
else:
501501
toolmanager = None

‎lib/matplotlib/backends/backend_tkagg.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_tkagg.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ def _get_toolbar(self):
569569
return toolbar
570570

571571
def _get_toolmanager(self):
572-
if rcParams['toolbar'] != 'toolbar2':
572+
if rcParams['toolbar'] == 'toolmanager':
573573
toolmanager = ToolManager(self.canvas.figure)
574574
else:
575575
toolmanager = None

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.