Skip to content

ENH: add demo of binding container to sliders #22

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
Nov 28, 2022

Conversation

tacaswell
Copy link
Member

This is modified version of https://matplotlib.org/stable/gallery/widgets/slider_demo.html but :

  • adds another slider for the phase
  • does the updates via a subclass of the FuncContainer

There needs to be more thought on the right way to bind the sliders (or really any external input) into the data containers.

This is pulling from the sliders (twice) at query time, it might be better if instead the sliders pushed values into the Container, but doing it this way seemed like the easiest way to adapt the containers we have.

The next thing to make a Container for image scrubbing on top of a 3D array.

It would also be interesting to make a container that is Traitlets aware and hook it up to jupyter widgets.

@tacaswell tacaswell changed the title ENH: add demo of binding widgets to sliders ENH: add demo of binding container to sliders Nov 24, 2022
@ksunden ksunden merged commit d18a891 into matplotlib:main Nov 28, 2022
@tacaswell tacaswell deleted the widgets branch November 28, 2022 23:45
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.

2 participants