Skip to content
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

Intelligent slider size #46

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

TomNicholas
Copy link
Contributor

Attempts to fix #32 by automatically choosing the length of the slider based on the length of the slider label and value text.

There's a unit test which interrogates the figure and checks that the right side of the slider and text are not to the right hand side of the left side of the button.

The result should look something like this:

line1

(This change seems to pass the image comparison tests on my machine even though the slider should be a slightly different size which is odd?)

@ianhi
Copy link
Contributor

ianhi commented Oct 30, 2020

Have you considered a PR of this or something similar to core matplotlib? Being able to constrain a slider + text to be within a certain box is a generically useful feature.

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.

Move play/pause button
2 participants