The color of Scattergl points are missing when using animation
未關閉
還沒有人認領這個 Issue。
bug
P3
sev-3
- 主要語言
- Python
- 星號
- 18.8k
- 分支
- 2.8k
- 平均合併
- 16 小時 26 分鐘
- 30 天內合併 PR
- 21
描述
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.
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
首先執行提供的 Python 範例,並使用 Scattergl 重現動畫。比較第一個 frame 與後續 frame 的線條顏色,並追蹤 Plotly 視覺化堆疊中的動畫行為。當所有動畫 frame 的線段都保留其預期顏色時,即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python
- 領域
- data-visualization
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100