plotly / plotly/plotly.py

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

Open
#5,060 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug P1 regression
Dominant language
Python
Stars
18.8k
Forks
2.8k
Avg merge
16h 26m
Merged PRs (30d)
21

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the provided updatemenus example with Python 3.11.11 under Plotly 6.0.0 and 5.9.0, focusing on the title update when the button is pressed. Trace the button's update handling and title rendering, then verify that the title is initially shown and updates on every toggle without regressing the older-version behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.