# Animated scatter3d of small data but with many frames is slow

**URL:** <https://community.plotly.com/t/animated-scatter3d-of-small-data-but-with-many-frames-is-slow/81715>\
**Category:** 📊 Plotly Python\
**Tags:** question\
**Created:** [January 19, 2024, 8:31am UTC](https://community.plotly.com/t/animated-scatter3d-of-small-data-but-with-many-frames-is-slow/81715 "2024-01-19T08:31:58Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![AIMPED](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/aimped/32/21758_2.png) [@AIMPED](https://community.plotly.com/u/AIMPED)\
**Post date:** [January 19, 2024, 8:50am UTC](https://community.plotly.com/t/animated-scatter3d-of-small-data-but-with-many-frames-is-slow/81715/2 "2024-01-19T08:50:54Z")

</div>

Hi @byfra welcome to the forums.

I don’t have much experience with animations in plotly, but this might be related with creating new traces for each frame. I have to confess, I did not read all of your code and the topic I’m referring to, but I leave it here just in case:

> [@How to merge Isosurface and Scatter3d in plotly frame?](https://community.plotly.com/t/how-to-merge-isosurface-and-scatter3d-in-plotly-frame/72934/3):
>
> @spataphore@AIMPED The solution given by @AIMPED is a workaround, but not a typical way to update two or more traces in each frame. import plotly.graph\_objects as go import numpy as np colorscales = ['algae', 'balance', 'deep', 'delta', 'dense', 'ice', 'icefire', 'inferno', 'turbo', 'plasma'] fig = go.Figure([go.Scatter3d( x=np.random.randint(1,3,4), y=np.random.randint(1,3,4), z=np.random.randint(1,3,4), mod…

---

_[View the full topic](https://community.plotly.com/t/animated-scatter3d-of-small-data-but-with-many-frames-is-slow/81715)._
