Animation glitch with missing data
未关闭
还没有人认领这个 Issue。
bug
P3
- 主要语言
- Python
- 星标
- 18.8k
- 派生
- 2.8k
- 平均合并
- 16 小时 26 分钟
- 30 天内合并 PR
- 21
描述
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()

Unfortunately I can't upload an animation of the "conversion".
Thanks in advance!
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
运行提供的 Python 3.7 和 Plotly 4.5.0 示例,并检查生成的散点动画帧。比较数据开头或结尾缺少 id 的帧,然后验证缺失的标记是否仍能得到一致处理,而不是消失或被转换。当两种缺失数据情况都能在没有报告中的问题的情况下进行动画显示时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- data-visualization
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100