Scattergl fill not shown when too many scattergl-traces in plot
未关闭
还没有人认领这个 Issue。
bug
P3
- 主要语言
- Python
- 星标
- 18.8k
- 派生
- 2.8k
- 平均合并
- 16 小时 26 分钟
- 30 天内合并 PR
- 21
描述
A strange bug happens when adding more than 508 scattergl traces to a figure: the fill property is not shown anymore:
n=509
fig = go.Figure()
for i in range(n):
fig.add_scattergl(
x=[0,1], y=np.random.random(2), mode='lines',
showlegend=False
)
fig.add_scattergl(
x=[0.1, 0.9, 0.9, 0.1],
y=[0.2, 0.2, 1.2, 1.2],
mode='lines', fill='toself', fillcolor='red'
)
fig.update_layout(hovermode='closest')
With n=509, the fill doesn't show (but the line of the trace does), with n=508, the fill shows up.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
使用提供的 Python 示例重现该问题,比较 508 和 509 个 scattergl trace,并检查最后一个 trace 的填充渲染。首先跟踪 figure 使用的 scattergl 渲染路径;当使用 509 个 trace 时红色填充仍然可见,并且现有的线条和渲染行为保持不变时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- data-visualization
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100