Announcing Dash Bio 1.0.0 🎉 : a one-stop-shop for bioinformatics and drug development visualizations.

Draw heatmap / image with extents

In matplotlib, we can draw heatmap / image on a section of the plot without filling it by ax.imshow(im, extents(xmin, xmax, ymin, ymax).

Is there anyway to do this in Plotly?

Hi @JohnBarren welcome to the forum! If you use px.imshow or go.Image you can use fig.update_xaxes and fig.update_yaxes to change the axis range. You can also pass x and y arguments to px.imshow to use different values than the default (indices of pixels). A last possibility is to use a layout image.

Thank you for your reply, Emmanuelle!

Is it possible to draw something like this in Plotly?