How to set Box Select as the default instead of zoom on the modebar?

Is it possible to have the box select button from the modebar to be selected by default?
image

Thanks.

Hi @dataturnsmeon
You can set any of the buttons from the Modebar to be selected by default by using the dragmode property.

fig.update_layout(dragmode='select')
2 Likes

Wow so easy, thanks @atharvakatre : )