FigureWidget `shapes` property is empty, even when it's populated in `_props`
未關閉
還沒有人認領這個 Issue。
bug
P2
- 主要語言
- Python
- 星號
- 18.8k
- 分支
- 2.8k
- 平均合併
- 16 小時 26 分鐘
- 30 天內合併 PR
- 21
描述
When using FigureWidget, the shapes property does not update properly.
Here is an example:
fig = go.Figure()
fig.update_layout(
modebar={"add": ["drawline", "drawclosedpath", "eraseshape"]},
)
widget = go.FigureWidget(fig)
widget.show()
When I draw a shape, widget.layout["shapes"] remains empty. On the other hand, widget.layout._props["shapes"] is populated correctly.
This is using Plotly 6.2.0.
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
使用所示的 FigureWidget 範例重現問題,然後追蹤繪製形狀後 widget.layout["shapes"] 和 widget.layout._props["shapes"] 如何被填入。比較公開屬性與內部 props 的行為,並在公開 shapes 屬性反映出所繪製的形狀後確認完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python
- 領域
- data-visualization
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100