Skip to content

Moving scene during the animation of 3d traces. How to fix it? #6207

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

Closed
empet opened this issue Jun 2, 2022 · 1 comment
Closed

Moving scene during the animation of 3d traces. How to fix it? #6207

empet opened this issue Jun 2, 2022 · 1 comment

Comments

@empet
Copy link

empet commented Jun 2, 2022

Lately there have been addressed a few questions on the Plotly forum about 3D animation. I noticed that unlike 2-3 years ago, now the scene is moving during the animation, although the scene xaxis, yaxis, zaxis range, was set such so that all frame points fit safely into the parallelepiped defined by these ranges. A workaround I suggested is to add a dummy Scatter3d trace consisting in 2 points of minimum and maximum coordinates, i.e. the diagonally opposite points in the parallelepiped defining the scenes. I remember that before a certain version of plotly.js this trick was not necessary. What would be another solution to keep the scene fixed from frame to frame?

Here https://chart-studio.plotly.com/~empet/16182 is an example with fixed axes range, and this one https://chart-studio.plotly.com/~empet/16180 (as answer for plotly/plotly.py#3753), with a dummy Scatter3d trace, of small marker size, that plots exactly the points having the end coordinates in the above ranges.

@empet
Copy link
Author

empet commented Jun 2, 2022

@empet empet closed this as completed Jun 2, 2022
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