Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8417f7f

Browse files
author
Stephen Horst
committed
Propose removing minimum window size limit in tkAgg backend
1 parent b344ab8 commit 8417f7f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/matplotlib/backends/backend_tkagg.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,12 @@ def __init__(self, canvas, num, window):
532532
self._num = num
533533
_, _, w, h = canvas.figure.bbox.bounds
534534
w, h = int(w), int(h)
535-
self.window.minsize(int(w*3/4),int(h*3/4))
535+
# Is there any need to limit the minimum size of the window? I would
536+
# like to be able to dynamically change the window size of a figure and
537+
# if my window starts out large and I want to go small, this line
538+
# limits me. I'm not seeing the advantage of this limit in the first
539+
# place, so I propose removal.
540+
#self.window.minsize(int(w*3/4),int(h*3/4))
536541
if matplotlib.rcParams['toolbar']=='toolbar2':
537542
self.toolbar = NavigationToolbar2TkAgg( canvas, self.window )
538543
else:

0 commit comments

Comments
 (0)