Hi,
I am trying to the colorbar legends on the right side of my Plotly Express scatter_mapbox plot.
Here’s my code on how to make the plot.
fig = px.scatter_mapbox(df, lat="Latitude", lon="Longitude", color="Data", size="Confirmed", hover_name="State", color_continuous_scale=px.colors.cyclical.IceFire)
I’ve tried:
fig.layout.update(margin={showlegend=False)
fig.update_traces(marker_showscale=False)
fig.layout.showlegend=False
fig.layout.update(showlegend=False)
But the colorbar just does not want to go away. On the Plotly Express scatter mapbox documentation there’s no API to hide the colorbar.
How can I make it go away?