Skip to content

Commit d9b722f

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/backends/_backend_tk.py

+1-1
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)