Reset axis after layout update

Hello guys,

i would like to know if it is possibile to change initial axes values after a relayout.

For example :

if i click on reset axes it doesn’t change x axes as ‘xaxis.range’: [0,1].

How can i modify the settings used in the resetScale2d?



Here’s a very hacky solution (don’t tell anyone):

Here’s better solution using custom modebar buttons:

1 Like

Hi @etienne ,
Thank you for the example.
Would you be able to tell me how to do this in Python?

Can the same axis-reset be done in case of 3-D Scatter Plot ?

1 Like