Currently you can’t add select2d or lasso2d to the modebar on heatmaps: https://codepen.io/ifland/pen/oGoPaK The behavior is working, and the icons are present so they can be added in manually: https://codepen.io/ifland/pen/ZXvmQz, but this approach isn’t available if you’re working with dash or the python API.
You can subscribe to https://github.com/plotly/plotly.js/issues/170 for the most up-to-date development info.
In the meantime, you try adding an invisible scatter
trace to your graph e.g:
{
x: [/* */],
y: [/* */],
opacity: 0
}
1 Like