.full_figure_for_development() doesn't show all computed data for go.Carpet
オープン
まだ誰も着手していません。
bug
P3
- 主要言語
- Python
- スター
- 18.8k
- フォーク
- 2.8k
- 平均マージ
- 16時間 26分
- マージ済み PR(30日)
- 21
説明
I want to set text ticktext along the baxis of a go.Carpet but couldn't figure out how to format ticktext and tickvals in the Carpet constructor. I tried to use .full_figure_for_development() to inspect what is set by default but these key-values pairs are missing from
A simple example:
import plotly.graph_objects as go
fig = go.Figure()
a = [0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3]
b = [4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6]
b2 = ['a', 'a', 'a', 'b', 'b', 'b', 'c', 'c', 'c']
y = [1, 1.4, 1.6, 1.75, 2, 2.5, 2.7, 2.75, 3, 3.5, 3.7, 3.75]
fig.add_trace(go.Carpet(
a = a,
b = b, # b2,
y = y,
aaxis = dict(
tickprefix = 'a = ',
),
baxis = dict(
tickprefix = 'b = ',
smoothing = 0,
# tickmode = 'array',
# ticktext = b2, # ['a', 'b', 'c'],
# tickvals = b, # [4, 5, 6]
)
))
fig.show()
full_fig = fig.full_figure_for_development()
print(full_fig.data[0]['baxis']) # ticktext and tickvals missing!
i.e. I want to figure out how to set b = 4 to b = 6 to a, b, and c

コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
提供された go.Carpet の例から始め、full_figure_for_development() を実行して、欠落している baxis の ticktext と tickvals を再現します。Carpet のデフォルト値がどのように計算され、表現されるかを追跡し、その後、結果の baxis に期待される計算済みデータが含まれ、既存の figure 出力が壊れていないことを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- data-visualization
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100