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 6c37203

Browse filesBrowse files
authored
Update _backend_tk.py
Added reason for change as a comment
1 parent 63de4ed commit 6c37203
Copy full SHA for 6c37203

File tree

Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed

‎lib/matplotlib/backends/_backend_tk.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/_backend_tk.py
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,7 @@ def __init__(self, canvas, num, window):
473473
self.window.withdraw()
474474
self.set_window_title("Figure %d" % num)
475475
self.canvas = canvas
476+
# packing toolbar first, because if space is getting low, last packed widget is getting shrunk first (-> the canvas)
476477
self.toolbar = self._get_toolbar()
477478
self.canvas._tkcanvas.pack(side=Tk.TOP, fill=Tk.BOTH, expand=1)
478479
self._num = num

0 commit comments

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