8000 Attempting to resize when toolbar has been turned off causes an unhandle... by sjhorst · Pull Request #4048 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Attempting to resize when toolbar has been turned off causes an unhandle... #4048

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Propose removing minimum window size limit in tkAgg backend
  • Loading branch information
Stephen Horst committed Jan 28, 2015
commit 8417f7f462b89a713653df38aef5d36bd445822d
7 changes: 6 additions & 1 deletion lib/matplotlib/backends/backend_tkagg.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,12 @@ def __init__(self, canvas, num, window):
self._num = num
_, _, w, h = canvas.figure.bbox.bounds
w, h = int(w), int(h)
self.window.minsize(int(w*3/4),int(h*3/4))
# Is there any need to limit the minimum size of the window? I would
# like to be able to dynamically change the window size of a figure and
# if my window starts out large and I want to go small, this line
# limits me. I'm not seeing the advantage of this limit in the first
# place, so I propose removal.
#self.window.minsize(int(w*3/4),int(h*3/4))
if matplotlib.rcParams['toolbar']=='toolbar2':
self.toolbar = NavigationToolbar2TkAgg( canvas, self.window )
else:
Expand Down
0