matplotlib / data-prototype

https://matplotlib.org/data-prototype
BSD 3-Clause "New" or "Revised" License
5 stars 4 forks source link

ENH: add demo of binding container to sliders #22

Closed tacaswell closed 1 year ago

tacaswell commented 1 year ago

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

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.