diff --git a/lib/matplotlib/backends/_backend_tk.py b/lib/matplotlib/backends/_backend_tk.py index b334fb71a763..80bfa80bc537 100644 --- a/lib/matplotlib/backends/_backend_tk.py +++ b/lib/matplotlib/backends/_backend_tk.py @@ -460,7 +460,7 @@ def _get_toolmanager(self): return toolmanager def resize(self, width, height): - self.canvas._tkcanvas.master.geometry("%dx%d" % (width, height)) + self.canvas._tkcanvas.configure(width=width, height=height) if self.toolbar is not None: self.toolbar.configure(width=width)