plotly / plotly/plotly.py

In Plotly==6.0.0, the title is not displayed when switching the button.

オープン
#5,060 コメント 7 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

bug P1 regression
主要言語
Python
スター
18.8k
フォーク
2.8k
平均マージ
16時間 26分
マージ済み PR(30日)
21

説明

my environment

Python 3.11.11
plotly==6.0.0

I have implemented the button and layout as follows:

button = dict(
  label = button_name, method="update",
  args=[
      {"visible": visible_status},
      {"title": button_name}
      ]
  )
def layout(self):
    return go.Layout(
        title=dict(text="title"),
        updatemenus=self._updatemenus(),
        barmode="overlay",
        hovermode="x"
        )

In Plotly==6.0.0, the title set in the layout is displayed initially, but no title is displayed when you press the button.
Using Plotly==5.9.0 the title updates every time I toggle the button.

I thought this might be a problem, so I created an issue.

I'll be using Plotly==5.9.0 for a while.
best regards.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

提供されたupdatemenusの例を、Python 3.11.11とPlotly 6.0.0および5.9.0で再現し、ボタンを押したときのタイトル更新に重点を置きます。ボタンの更新処理とタイトルの描画を追跡し、タイトルが最初に表示され、切り替えるたびに更新されることを、古いバージョンの動作を後退させることなく確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
data-visualization
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。