From cbf41ab644acf7985264bdc12f73bb5183c9a2ac Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Fri, 27 Mar 2020 17:34:58 -0400 Subject: [PATCH] tk: Don't resize toolbar during resize event. It is already resized by Tk due to its packing mode, and doing it manually causes the window to grow erratically during resize. --- lib/matplotlib/backends/_backend_tk.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/matplotlib/backends/_backend_tk.py b/lib/matplotlib/backends/_backend_tk.py index 9549d57c24b7..600722dfcc8d 100644 --- a/lib/matplotlib/backends/_backend_tk.py +++ b/lib/matplotlib/backends/_backend_tk.py @@ -448,9 +448,6 @@ def _get_toolmanager(self): def resize(self, width, height): self.canvas._tkcanvas.configure(width=width, height=height) - if self.toolbar is not None: - self.toolbar.configure(width=width) - def show(self): with _restore_foreground_window_at_end(): if not self._shown: