-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
New Styling for Sliders #19256
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
Comments
Slider history: They were added in fa318da all the way back in 2005. The original motivation seems to have been for use in the subplot adjustment panel. Cool stuff :) |
This doesn't seem that difficult; turn off |
👍 on the concept. Buttons and TextBoxes could also need a bit more care with styling. |
This is pretty much what I did for the above, except I used |
Problem
I've never loved the way Matplotlib Slider widgets look (and per jupyter-widgets/ipywidgets#3025 (comment) I am apparently not alone). However, beyond that I think that the current way the slider widgets are drawn introduces two issue that hamper usability.
<speculation>
More broadly I suspect that most people's expectation of what a slider UI element will look like is strongly shaped by how they look on the web. So if Matplotlib sliders look more similar to web sliders then they will be more natural for users.</speculation>
Proposed Solution
Something to the effect of this:
script with new slider definition + an example
The above script will generate these two figures for comparison. On the left is my new proposed style, and on the right is the current style:

Additional context and prior art
https://www.smashingmagazine.com/2017/07/designing-perfect-slider/
https://material-ui.com/components/slider/
https://ipywidgets.readthedocs.io/en/stable/examples/Widget%20List.html#IntSlider
The text was updated successfully, but these errors were encountered: