Plotly express scatter_mapbox hide legend

Hi @vitaminc

Type:

fig.layout

to display the layout definition. If you are seeing settings for 'coloraxis', then to remove the colorbar just make the following update:

fig.update_layout(coloraxis_showscale=False)

Itโ€™s the same approach as in in the case of chropletapbox discussed here: https://community.plotly.com/t/hide-colorbar-from-px-choropleth/34970/7.

3 Likes