ScatterGL alignment fails above height=8190
未关闭
还没有人认领这个 Issue。
bug
P3
size: 3
- 主要语言
- Python
- 星标
- 18.8k
- 派生
- 2.8k
- 平均合并
- 16 小时 26 分钟
- 30 天内合并 PR
- 21
描述
Below this height everything works fine. Above this height the alignment of scatterGL marks to tickmarks( or grid lines) completely fails. There is no issue with svg scatter.
height=8180:
height=8500:
Code:
import plotly.graph_objects as go
from dash import dcc
import numpy as np
import dash
app = dash.Dash(__name__)
app.layout = dcc.Graph(id="figure", figure={})
y_values=list(range(1, 353))
scatter_trace = go.Scatter(
x=np.zeros(353),
y=y_values,
showlegend=False, # Exclude this trace from the legend
mode="markers"
)
layout = go.Layout(
height=8500,
)
fig = go.Figure(data=[scatter_trace], layout=layout)
fig.update_yaxes(
range=[0, len(y_values)],
tickvals=y_values,
)
app.layout.figure = fig
if __name__ == "__main__":
app.run_server(debug=True)
Versions:
name : plotly
version : 5.15.0
name : dash
version : 2.11.1
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
使用高度为 8180 和 8500 的参数运行提供的 Dash 复现,然后跟踪 ScatterGL 渲染以及坐标轴刻度/网格线对齐的入口点。将 WebGL 的行为与 SVG 散点图情况进行比较;当高度超过 height=8190 时标记仍与刻度或网格线保持对齐,且不会使较低高度下正常工作的情况发生回归时,即视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- numpy, python
- 领域
- data-visualization
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 活跃
- 描述清晰度
- 基本清楚
- 新手友好度
- 55/100