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

go.Scattergl with mode="text" does not display text in Plotly 6.0.0

Open brj0 opened this issue 10 months ago • 2 comments

Description of the bug

Using go.Scattergl with mode="text" or mode="markers+text" does not display the specified text in Plotly version 6.0.0 (tested on Python 3.12.9). This worked in earlier versions of Plotly.

To Reproduce

import plotly.graph_objects as go

scatter = go.Scattergl(
    x=[0.5],
    y=[0.5],
    mode="markers+text",
    text="This Text is not displayed in plotly version 6.0.0",
    textposition="top center",
)
fig = go.Figure()
fig.add_trace(scatter)
fig.show()

brj0 avatar Mar 05 '25 09:03 brj0

Thanks for catching this @brj0 - I'll try to get it looked at in the next work cycle.

gvwilson avatar Mar 07 '25 17:03 gvwilson

FWIW, it doesn't show the markers either when using mode="markers+text".

tjnd89 avatar Mar 12 '25 18:03 tjnd89