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

Skip to content

Propose removing minimum window size limit in tkAgg backend #4052

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

Merged
merged 2 commits into from
Jan 30, 2015

Conversation

sjhorst
Copy link

@sjhorst sjhorst commented Jan 29, 2015

I like to dynamically resize my plot windows and was having problems when starting large and going small. Problem is a min size limit that is set to 3/4 of original size. Limited testing shows no crash problems with removing the size limit altogether and going super small. As long as the window manager uses a border it won't be too small to see. But if a limit must be present, I suggest a hard coded limit rather than a percentage of original size that can limit valid resize requests.

@mdboom
Copy link
Member

mdboom commented Jan 29, 2015

Not sure why this was in here in the first place, but it goes wayyy back.

# sizable percentage of the original dimensions (as implemented
# in v1.4.2 and prior) to allow initially large windows to
# shrink
# self.window.minsize(10, 10)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need for this, nor the comment. I like PRs where code gets deleted. 👍

tacaswell added a commit that referenced this pull request Jan 30, 2015
MNT : removing minimum window size limit in tkAgg backend
@tacaswell tacaswell merged commit 01b9365 into matplotlib:v1.4.x Jan 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants