Skip to content

Animation glitch with missing data #2126

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

Open
JulianWgs opened this issue Jan 24, 2020 · 4 comments
Open

Animation glitch with missing data #2126

JulianWgs opened this issue Jan 24, 2020 · 4 comments
Labels
bug something broken P3 backlog

Comments

@JulianWgs
Copy link
Contributor

JulianWgs commented Jan 24, 2020

When having missing at the start time. Scatter markers are not being draw. When another marker has no values after a certain point in time this point "converts" to the no drawn point.

Im using plotly 4.5.0 in Python 3.7 with Anaconda.

Here is an example:

df = pd.DataFrame([
    {"time": 0, "id": "A", "x": 0, "y": 0}, # No data for B at timestep 0
    {"time": 1, "id": "A", "x": 0, "y": 1},
    {"time": 1, "id": "B", "x": 1, "y": 0},
    {"time": 2, "id": "A", "x": 0, "y": 2},
    {"time": 2, "id": "B", "x": 1, "y": 1},
    {"time": 3, "id": "B", "x": 1, "y": 2}, # No data for A at timestep 3
])

fig = px.scatter(
    data_frame=df,
    x="x", y="y",
    color="id",
    animation_frame="time",
    hover_data=df.columns,
    range_x=(-1, 3),
    range_y=(-1, 3),
)
fig.show()

grafik

Unfortunately I can't upload an animation of the "conversion".

Thanks in advance!

@JulianWgs
Copy link
Contributor Author

Could anyone replicate the bug with the minimum working example?

@gvwilson
Copy link
Contributor

Hi - we are trying to tidy up the stale issues and PRs in Plotly's public repositories so that we can focus on things that are still important to our community. Since this one has been sitting for several years, I'm going to close it; if it is still a concern, please add a comment letting us know what recent version of our software you've checked it with so that I can reopen it and add it to our backlog. Thanks for your help - @gvwilson

@JulianWgs
Copy link
Contributor Author

I just reproduced the bug on 5.22.0. Please reopen the issue. Thank you!

@gvwilson gvwilson reopened this Jun 24, 2024
@gvwilson gvwilson self-assigned this Jun 24, 2024
@gvwilson
Copy link
Contributor

Thanks @JulianWgs - I've assigned it to myself, and I'll see if we can get it into our backlog.

@gvwilson gvwilson removed their assignment Aug 2, 2024
@gvwilson gvwilson added P3 backlog bug something broken labels Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken P3 backlog
Projects
None yet
Development

No branches or pull requests

2 participants