Scattergl doesn't fill to zero y properly
未關閉
還沒有人認領這個 Issue。
bug
P3
- 主要語言
- Python
- 星號
- 18.8k
- 分支
- 2.8k
- 平均合併
- 16 小時 26 分鐘
- 30 天內合併 PR
- 21
描述
Using the fill tozeroy on a Scattergl fills to a minima, rather than zero. No such issue is present in Scatter.
The issue was found with Python using Plotly version 4.14.1 and is present in both Chrome and Edge. The following code is able to reproduce the issue:
import plotly.graph_objects as go
def squared(x):
return x**2
x = list(range(-5, 5))
y = [squared(i)-3 for i in x]
fig = go.Figure(
go.Scattergl(
x=x,
y=y,
fill='tozeroy'
)
)
fig.show()
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
首先使用 Plotly 4.14.1 執行提供的 Python 重現程式,並在 Chrome 或 Edge 中比較 Scattergl 與 Scatter。追蹤 fill='tozeroy' 的 Scattergl 渲染路徑;當填滿區域到達 y=0 而不是資料最小值時,即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python
- 領域
- data-visualization
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 描述清楚
- 新手友好度
- 45/100