secondary_y creates a small spacing on the right
オープン
まだ誰も着手していません。
bug
P3
- 主要言語
- Python
- スター
- 18.8k
- フォーク
- 2.8k
- 平均マージ
- 16時間 26分
- マージ済み PR(30日)
- 21
説明
It looks like secondary_y would cause the chart to render a small chunk of whitespace to the right of it.
With secondary_y:

import plotly.graph_objects as go
from plotly.subplots import make_subplots
fig = make_subplots(specs=[[{'secondary_y': True}]])
fig.add_trace(go.Scatter(x=[1, 2, 3], y=[40, 50, 60], name='yaxis data'), secondary_y=False)
fig.add_trace(go.Scatter(x=[2, 3, 4], y=[4, 5, 6], name='yaxis2 data'), secondary_y=True)
fig.update_layout(legend={'y': 1, 'x': 0}, margin={'t': 0, 'b': 0, 'l': 0, 'r': 0})
fig.show()
Without secondary_y:

import plotly.graph_objects as go
from plotly.subplots import make_subplots
fig = make_subplots()
fig.add_trace(go.Scatter(x=[1, 2, 3], y=[40, 50, 60], name='yaxis data'))
fig.add_trace(go.Scatter(x=[2, 3, 4], y=[4, 5, 6], name='yaxis2 data'))
fig.update_layout(legend={'y': 1, 'x': 0}, margin={'t': 0, 'b': 0, 'l': 0, 'r': 0})
fig.show()
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、issue にある 2 つの Plotly Python の例を実行し、secondary_y がある場合とない場合のレンダリングされたグラフの幅を比較します。secondary_y に関係する subplot と layout の処理を追跡します。右側の余分な空白がなくなり、両方の y 軸と表示されるトレースが正しい状態になれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- plotly, python
- 領域
- data-visualization
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 活発
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 52/100