Skip to content

Commit a6acefe

Browse files
authored
Merge pull request #25371 from QuLogic/tk-spacer
Tk: Fix size of spacers when changing display DPI
2 parents 981e1d1 + a3f4114 commit a6acefe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/backends/_backend_tk.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -677,8 +677,8 @@ def _rescale(self):
677677
# Text-only button is handled by the font setting instead.
678678
pass
679679
elif isinstance(widget, tk.Frame):
680-
widget.configure(height='22p', pady='1p')
681-
widget.pack_configure(padx='4p')
680+
widget.configure(height='18p')
681+
widget.pack_configure(padx='3p')
682682
elif isinstance(widget, tk.Label):
683683
pass # Text is handled by the font setting instead.
684684
else:

0 commit comments

Comments
 (0)