The color of Scattergl points are missing when using animation
Open
Nobody has claimed this yet.
bug
P3
sev-3
- Dominant language
- Python
- Stars
- 18.8k
- Forks
- 2.8k
- Avg merge
- 16h 26m
- Merged PRs (30d)
- 21
Description
import plotly.graph_objects as go
fig = go.Figure(
data=[go.Scattergl(x=[0, 1], y=[0, 1])],
layout=go.Layout(
xaxis=dict(range=[0, 5], autorange=False),
yaxis=dict(range=[0, 5], autorange=False),
title="Start Title",
updatemenus=[dict(
type="buttons",
buttons=[dict(label="Play",
method="animate",
args=[None])])]
),
frames=[go.Frame(data=[go.Scattergl(x=[1, 2], y=[1, 2])]),
go.Frame(data=[go.Scattergl(x=[1, 4], y=[1, 4])]),
go.Frame(data=[go.Scattergl(x=[3, 4], y=[3, 4])],
layout=go.Layout(title_text="End Title"))]
)
fig.update_layout(showlegend=False)
fig.show()
the visualization is shown as below:
(https://github.com/plotly/plotly.py/assets/55653936/29679f73-06e7-43dd-80ae-1c7d7636f29d)
When I execute the above code, only the first frame line segment has normal color, and the other frame line segments have no color.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running the provided Python example and reproducing the animation with Scattergl. Compare the first frame with later frame line colors and trace the animation behavior in the Plotly visualization stack. Done means all animated frame line segments retain their expected colors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100