In Plotly==6.0.0, the title is not displayed when switching the button.
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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