My plotly version is 5.13.1 and it runs in jupyterlab â4.0.1â in windows 10.
not sure, But I think it is kind of bug.
go.Scatter has marker option and this option has symbol types, such as
âcircleâ, âcircle-openâ, âcircle-dotâ, âcircle-open-dotâ, âsquareâ, âsquare-openâ, âŚ
and almost every all others are no problem to show scatters. but some options, such as ây-upâ, ây-downâ shows nothing.
Iâll give you example code.
import plotly.graph_objects as go
fig = go.Figure()
symbol = "circle"
new_scatter = go.Scatter(x=[1,2,3], y=[1,2,3], mode="markers", marker=dict(symbol=symbol) )
fig.add_trace(new_scatter) # no-problem
symbol = "y-up"
new_scatter = go.Scatter(x=[4,5,6], y=[4,5,6], mode="markers", marker=dict(symbol=symbol) )
fig.add_trace(new_scatter) # it doesn't show
fig.update_layout( autosize=False, width=500, height=500)
fig.show()
hi @LaserCho Weâve been facing a few issues with jupyterlab 4. Does this bug happen in jupyterlab 3?
1 Like
I tried with âplotly.version, jupyterlab.version == (â5.15.0â, â3.0.0â)â
Same. ây-upâ markers show nothing, but âcircleâ markers show.
hi @LaserCho
Youâre right. I double-checked and that y-up
symbol doesnât work. A bit strange that y-up-open
works but not y-up
.
Would you be willing to report this bug as a new issue?
Can you please refer to this post and the symbol attribute options when you write the issue.
1 Like
@LaserCho Thanks for creating the GitHub issue.
1 Like
Re-posting my reply to the GitHub issue:
It concerns all symbols that are not filled. They are invisible as long as marker_line_width
defaults to zero. If you set
new_scatter = go.Scatter(x=[4,5,6], y=[4,5,6], mode="markers", marker=dict(symbol=symbol, line=dict(width=1)) )
they show up.