Skip to content
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

Animation frames must all have the same number of traces #2037

Closed
nzjrs opened this issue Sep 26, 2017 · 2 comments
Closed

Animation frames must all have the same number of traces #2037

nzjrs opened this issue Sep 26, 2017 · 2 comments

Comments

@nzjrs
Copy link

nzjrs commented Sep 26, 2017

Relevant pen: https://codepen.io/anon/pen/KXaGda

We'd like to add an remove traces in each animation frame, however AFAICT plotly requires the number of traces to be constant across all frames. Changing the number of traces in an animation frame gives the following error

Uncaught (in promise) TypeError: Cannot read property '_module' of undefined
    at Object.plots.transition (plotly-latest.js:151918)
    at nextFrame (plotly-latest.js:132610)
    at doFrame (plotly-latest.js:132654)
    at beginAnimationLoop (plotly-latest.js:132658)
    at queueFrames (plotly-latest.js:132576)
    at plotly-latest.js:132771
    at new Promise (<anonymous>)
    at Plotly.animate (plotly-latest.js:132505)
    at Object.exports.executeAPICommand (plotly-latest.js:142494)
    at plotly-latest.js:121413

Is this in fact the expected behaviour? I didn't see this limitation documented anywhere. Do you have any ideas how to work around this?

@nzjrs nzjrs changed the title Animation (frames) can not add traces Animation frames must all have the same number of traces Sep 27, 2017
@etpinard
Copy link
Contributor

Related to #932 I believe.

@etpinard
Copy link
Contributor

merging with #932

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

2 participants