layout image is not rendered when two scatter traces have different zorders
未关闭
还没有人认领这个 Issue。
bug
P3
- 主要语言
- Python
- 星标
- 18.8k
- 派生
- 2.8k
- 平均合并
- 16 小时 26 分钟
- 30 天内合并 PR
- 21
描述
Steps to reproduce:
import plotly.graph_objects as go
fig = go.Figure()
fig.update_yaxes(scaleanchor='x')
fig.add_traces([{'type': 'scatter', 'mode': 'lines', 'x': [0, 1], 'y': [0, -1], 'zorder': 0},
{'type': 'scatter', 'mode': 'markers', 'x': [0, 1], 'y': [0, -1], 'zorder': 1}])
fig.add_layout_image(dict(
source="https://images.plot.ly/language-icons/api-home/python-logo.png",
xref="x", yref="y", x=0, y=0, sizex=1, sizey=1, layer='below'))
fig.show()
Expected result; This doesn't happen when zorder is equal:
...
fig.add_traces([{'type': 'scatter', 'mode': 'lines', 'x': [0, 1], 'y': [0, -1], 'zorder': 1},
{'type': 'scatter', 'mode': 'markers', 'x': [0, 1], 'y': [0, -1], 'zorder': 1}])
...
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
运行提供的 Python 复现代码,并将其与 equal-zorder 示例进行比较。跟踪 scatter zorder 和 layout-image 的渲染路径,以确定图像在哪个位置被省略,然后验证图像在两种情况下都能渲染,同时不会导致现有 equal-zorder 行为发生回归。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- data-visualization
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 35/100