How do I set the actual default range of plot

Hi, I have tried to set a range of the plot using update_xaxes(range=[0, 10]), but that does not seem to set the actual default range of the plot, what I mean by that is that if I double-click to reset the plot, the range from 0 to 10 is no longer valid, it becomes for example from 0 to 12 instead. So, how can this be achieved, to set a default range so that even after double-clicking, the graph sets to the range user has defined?