ZOrder parameter Breaks Plotly!
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 42/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- plotly, python
調査の方向性
まず、提供されている make_subplots と Scatter/Candles の例を再現可能なケースに縮小し、Dash と Panel で zorder がある場合とない場合の動作を比較します。初回読み込みと図の再生成の両方を確認します。zorder によってどちらのアプリケーションも壊れなくなれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Hi, if I set zorder=2 or zorder=3 parameter in Candles, Scatter then the Plotly application will be broken!
It happens with Dash and Panel. So I think the problem is woth Plotly itself.
It happens when I regenerate a figure but sometimes it happens when I open an application first time.
I've recorded a video as it's hard to explain.
https://drive.google.com/file/d/1CiBZgWk60Q--nRdtFyQcyXDZFpfjRgv5/view?usp=drive_link
Some code:
fig: go.Figure = make_subplots(rows=6, cols=1,
shared_xaxes=True,
vertical_spacing=v_subplot_space, # Reduce space between plots
row_heights=row_heights) # Allocate space (Price gets most)
v_subplot_space = 0.001 # vertical_spacing
row_heights=[1.0, 0.1, 0.1, 0.1, 0.1, 0.1]
fig: go.Figure = make_subplots(rows=6, cols=1,
shared_xaxes=True,
vertical_spacing=0.005, # Reduce space between plots
row_heights=row_heights) # Allocate space (Price gets most)
# Bollinger Bands
fig.add_trace(go.Scatter(
hovertext=candles_df[CandlesTypes.DAY_NAME],
x=candles_df[CandlesTypes.DATETIME], y=candles_df[CandlesTypes.BB_UPPER],
name="BB Upper",
line=dict(color='rgba(150, 150, 150, 0.5)', width=1,), # Light grey
zorder=1,
hoverinfo="skip",
), row=1, col=1)
fig.update_yaxes(
row=1, col=1,
)
fig.update_xaxes(
dtick="D1", # Set grid interval to 1 day
matches='x',
)
- 主要言語
- Python
- スター
- 18.8k
- フォーク
- 2.8k
- 平均マージ
- 13時間 41分
- マージ済み PR(30日)
- 21
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
plotly/plotly.py のほかの issue
-
P3 size: 1 task
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
P3 size: 1 task
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
bug P1
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
-
feature P3
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
-
feature P3
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
plotly/plotly.py の issue をすべて見る
似ている issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
canonical/paas-charm#368 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
tech debt
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
StevenBlack/hosts#3256 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
qualcomm/qai-appbuilder#275 ·