Black Lives Matter. Please consider donating to Black Girls Code today.
Learn how to use COVID-19 data in open source Dash apps. Register for the Sept 23rd webinar with IQT!

Animating traces on trisurf

I would like to animate a series of traces in plotly. I currently have a trisurf and several traces plotted on the trisurf. I have been able to add a slider, so that as one slides from 1 --> 2 --> 3 etc., the 1st, 2nd, and 3rd traces are then visible (the trisurf is always visible). I would like to add a play/pause button and animate this process. Does anyone know if such a thing is possible at the moment? It seems like it should be, since the slider behaves exactly as I want–I literally just need to automate the ‘sliding’ of the slider.

I could put an explicit example, but its essentially the same set-up as here:


@bob Your question was challenging and I tried to animate the motion of a simplified man along
the central circle of a Moebius strip, represented as a trisurf.
The animation works fine offline:

but online it generates an empty plot window:
I couldn’t find any reason why it doesn’t work online.

1 Like

This works great for what I needed. I can get away with an offline notebook. Thanks!