Support dict union operator in legend updates
オープン
まだ誰も着手していません。
feature
P3
- 主要言語
- Python
- スター
- 18.8k
- フォーク
- 2.8k
- 平均マージ
- 16時間 26分
- マージ済み PR(30日)
- 21
説明
Would be nice if layout.Legend instances supported the dict union operator:
import plotly.graph_objects as go
fig = go.Figure()
fig.layout.legend |= dict(title="")
TypeError: unsupported operand type(s) for |=: 'Legend' and 'dict'
Since legend.update() works in analogy to dict.update()
fig.layout.legend.update(dict(title=""))
>>> layout.Legend({
'title': {'text': ''}
})
I was expecting other parts of the dict API to work as well.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
layout.Legend のエントリポイントから始め、既存の update() の動作が辞書操作とどのように関係するかを調査します。dict API のどの部分をサポートすることが意図されているのかを判断し、要求された和集合操作と、合意された関連操作が update() と一貫して動作することを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- api
- issue の種類
- 機能追加
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 38/100