✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
⚡️ Concerned about the grid? Kyle Baranko teaches how to predicting peak loads using XGBoost. Register for the August webinar!

Animation transition smoothness differs from Plotly Express to Plotly Graphical Objects

Hi,

I am animating a scatterplot using Plotly for Python and I noticed a big difference in the smoothness of the transition using Plotly Express vs Plotly Graphical Objects. Plotly Express is quite a bit smoother, which is what I need for animating sporting data. However, I’m not able to utilize multiple layers with Express so I jumped to GO, but the transitions are not nearly as smooth. Is there an easy way to rectify this? I’ve already tried using:

fig.update_layout(transition = {'duration': 0, 'easing':'linear', 'ordering':'traces first'})

But it does not seem to help at all. Any ideas on how to achieve the same level of smoothness that is present in Plotly Express with GO? Thanks!