Skip to content

In a multi-trace figure the traces that are not animated get invisible when animation starts #4596

Closed
@empet

Description

@empet

Recently I noticed that the old definition of animation frames doesn't work anymore.
More precisely: if I define a subplot with two cells, for example, and want to animate only the traces in a single subplot, then by the initial definition from 2016, I had to set the attribute Frame.traces on the list of trace indices in fig.data that are modified from frame to frame. All other traces were visible during the animation.

After a recent plotly.js release (I couldn't identify it) the traces that are not modified within Frame.data disappear when the animation starts, and I have to extend the list Frame.traces to the list of all traces in fig.data because those that are not modified from frame to frame are set invisible by plotly.js. Hence Frame.data must contain the update visible=True for these ones.

My question is: is it possible to revert the Frame definition to the old one? Why let users make these settings (visible=True), and why they are not performed automatically by plotly.js, as it did
for three years?

Here is a simple example to understand better what I'm referring to:
https://plot.ly/~empet/15543/

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsomething broken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions