Skip to content

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

@empet

Description

@empet

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions