How to Update color of points of a dataset in python plotly animation

Hi everyone, I had an issue with the python plotly animation.

I know how to do some points animation, however, is there a way to update color of umoved points.

Details of the issue is in the following link, I have created the file and upload on github

Many Thanks!!

Hi @XiangyangFrank,

One approach you could use would be to represent your colored points as a single scatter trace, where the colors are specified using a colorscale ( Then all of your frames would have two traces, one for the black cluster centers and one for the raw data points. Right now your frames only have a single trace, so you would want to add this second trace to each frame