Scattergl fill not shown when too many scattergl-traces in plot
オープン
まだ誰も着手していません。
bug
P3
- 主要言語
- Python
- スター
- 18.8k
- フォーク
- 2.8k
- 平均マージ
- 16時間 26分
- マージ済み PR(30日)
- 21
説明
A strange bug happens when adding more than 508 scattergl traces to a figure: the fill property is not shown anymore:
n=509
fig = go.Figure()
for i in range(n):
fig.add_scattergl(
x=[0,1], y=np.random.random(2), mode='lines',
showlegend=False
)
fig.add_scattergl(
x=[0.1, 0.9, 0.9, 0.1],
y=[0.2, 0.2, 1.2, 1.2],
mode='lines', fill='toself', fillcolor='red'
)
fig.update_layout(hovermode='closest')
With n=509, the fill doesn't show (but the line of the trace does), with n=508, the fill shows up.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
提供された Python の例で問題を再現し、508 個と 509 個の scattergl trace を比較して、最後の trace の fill のレンダリングを確認します。まず、figure が使用する scattergl のレンダリングパスを追跡します。509 個の trace でも赤い fill が表示されたままになり、既存の線とレンダリングの動作が維持されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- data-visualization
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100