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

"Double click to isolate one trace" does not always do so

Open kdpenner opened this issue 3 years ago • 0 comments

Double clicking on one element in the legend does not always isolate the element's corresponding trace. Sometimes all traces are shown, and sometimes no change is made. See the recording below. A double click preceded every flicker.

import plotly.graph_objects as go


fig = go.Figure()

trace1 = go.Scattermapbox(lat=[0], lon=[0])
fig.add_trace(trace1)

trace2 = go.Scattermapbox(lat=[1], lon=[1])
fig.add_trace(trace2)

lat_cen = 0
lon_cen = 0

fig.layout.mapbox.center = {"lat": lat_cen, "lon": lon_cen}
fig.layout.mapbox.style = "open-street-map"
fig.layout.mapbox.zoom = 5

fig.show()

https://user-images.githubusercontent.com/9297904/149550631-a6829707-afcd-43d8-83a3-80ed0ee9b34a.mov

kdpenner avatar Jan 14 '22 16:01 kdpenner