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

Improve reprodicibiity and reduce bugginess of additional animated subplot code #3

Open
Bergam0t opened this issue Jan 5, 2024 · 0 comments

Comments

@Bergam0t
Copy link
Collaborator

Bergam0t commented Jan 5, 2024

Adding additional subplots and animating them is definitely a hacky workaround at best.

It's now functioning correctly in the HEP project example, but ensuring all traces were visible both at the start and for the duration, not duplicated once the animation began, and animated correctly, was tedious and didn't always seem to behave in a logical manner.

I think further investigation needs to be done into how the frames are structured directly after coming out of the initial plotly express call and try to tie that in better to the setup of the additional traces and the final passing of the traces list.

I don't think there's an easier way to set this up either without completely rewriting the initial animation call (which is possible, but a bit of a faff) to return a trace instead of a figure, which could then be added to a subplot. The play bar etc. would then have to be set up in a more manual way. Not insurmountable but I think the current approach - plus detailed documentation on how to extend this with additional subplots - is going to be the most flexible and lowest-maintenance approach.

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

No branches or pull requests

1 participant