plotly / plotly/plotly.py

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

未关闭
#5,060 7 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

bug P1 regression
主要语言
Python
星标
18.8k
派生
2.8k
平均合并
16 小时 26 分钟
30 天内合并 PR
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. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

使用 Python 3.11.11 在 Plotly 6.0.0 和 5.9.0 下复现提供的 updatemenus 示例,重点关注按下按钮时的标题更新。跟踪按钮的更新处理和标题渲染,然后验证标题最初会显示,并在每次切换时更新,同时不会导致旧版本行为回归。

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
data-visualization
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。