Plotly html file - autoscale vs reset axes


Can someone explain the difference between ‘autoscale’ and ‘reset axes’ in the context of a plotly html file (a heatmap in my case)? They seem to achieve the same thing for me (namely, resetting the figure to the most zoomed out perspective).

Here is a picture showing what i mean:


Hi @TimothyK !

I think that with a heatmap it would only make sense if, by default, you had some part of the plot hidden. Otherwise both buttons will have the same effect. The difference between them is that autoScale looks at all the points/data in the plot and changes the layout to show all of them, while resetAxes goes back to the layout details that you have specified for your figure, even if that leaves some points out.

It’s easier to understand with a scatter plot. Look here the difference when I comment and uncomment the update_xaxes (where I ‘restrict’ the range): autoScale vs resetAxes

I hope this helps!

1 Like

Perfect, thanks for the help and the work-through!