From a3f41149319db721cc233b98139c0c4aa53502a1 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Thu, 2 Mar 2023 21:20:43 -0500 Subject: [PATCH] Tk: Fix size of spacers when changing display DPI Fixes #25365 --- lib/matplotlib/backends/_backend_tk.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/matplotlib/backends/_backend_tk.py b/lib/matplotlib/backends/_backend_tk.py index 5da9d491ebaf..4ed5a1ee6850 100644 --- a/lib/matplotlib/backends/_backend_tk.py +++ b/lib/matplotlib/backends/_backend_tk.py @@ -677,8 +677,8 @@ def _rescale(self): # Text-only button is handled by the font setting instead. pass elif isinstance(widget, tk.Frame): - widget.configure(height='22p', pady='1p') - widget.pack_configure(padx='4p') + widget.configure(height='18p') + widget.pack_configure(padx='3p') elif isinstance(widget, tk.Label): pass # Text is handled by the font setting instead. else: