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 d9b722f

Browse filesBrowse files
authored
Merge pull request #16929 from QuLogic/tk-resize
tk: Resize the canvas, not the figure.
2 parents 91ee83e + 1b82a96 commit d9b722f
Copy full SHA for d9b722f

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+1
-1
lines changed

‎lib/matplotlib/backends/_backend_tk.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/_backend_tk.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ def _get_toolmanager(self):
446446
return toolmanager
447447

448448
def resize(self, width, height):
449-
self.canvas._tkcanvas.master.geometry("%dx%d" % (width, height))
449+
self.canvas._tkcanvas.configure(width=width, height=height)
450450

451451
if self.toolbar is not None:
452452
self.toolbar.configure(width=width)

0 commit comments

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