plotly.py icon indicating copy to clipboard operation
plotly.py copied to clipboard

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

Open takutori opened this issue 10 months ago • 6 comments

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.

takutori avatar Mar 02 '25 10:03 takutori

thanks very much for the bug report @takutori - I'll try to have someone look at this in our next work cycle. cheers - @gvwilson

gvwilson avatar Mar 03 '25 17:03 gvwilson

Thanks for the issue! Where are you running this code? JupyterLab? VS Code? A python script?

marthacryan avatar Mar 27 '25 15:03 marthacryan

closing as unresponsive

gvwilson avatar Jun 03 '25 13:06 gvwilson

@marthacryan @gvwilson

Sorry for the late reply. I'm replying just to be sure. I was using vs code.

takutori avatar Jun 03 '25 13:06 takutori

thanks @takutori - can you please try with plotly.py 6.1.2 and let us know if the problem is still there?

gvwilson avatar Jun 03 '25 13:06 gvwilson

@gvwilson I just checked. The problem still exists in plotly==6.1.2

takutori avatar Jun 03 '25 14:06 takutori

I just checked using plotly==6.2.0 and am also experiencing this issue. I installed plotly==5.24.1 and the title updated as expected.

aknse avatar Jul 17 '25 19:07 aknse