Boxselect doesn't appear with with image

The box and lasso selection tools seem to disappear when I use imshow instead of a scatterplot - I can get the box selection mode by using fig.update_layout(clickmode='event+select', dragmode='select', selectdirection='h'), but as soon as I switch out of selection mode to pan, I can’t get back into selection mode because the icon simply doesn’t appear. How can I get box selection to always appear as an option?

hi @mbacvanski
:wave: welcome to the community. With imshow you can draw shapes and move them around (similar to the select box). Would that work for you?

I suppose I could reimplement the selection functionality with shapes, but I’m interested in just letting the user select a horizontal segment of the image. Wondering if there’s an out of the box way to do this?

Unfortunately, I don’t think that’s possible. I plan to ask the Plotly engineers later this week. I’ll let you know what I learn.

Hi @mbacvanski
I spoke to the team. The best way to do this currently is to created selection functionalities with shapes.