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 : http://codepen.io/anon/pen/rmPXBO

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?

Thanks

Davide

Here’s a very hacky solution (don’t tell anyone): http://codepen.io/etpinard/pen/xdBxdx?editorsui=0010

Here’s better solution using custom modebar buttons: http://codepen.io/etpinard/pen/gWEOWR?editors=0010

1 Like

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

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

1 Like