Add axes system to existing figure

I am trying to create multiple additional axes systems within my main figure to be able to plot lines at their relative location but in their own axis system. I have tried adding new axes like this:

fig.update_layout(xaxis2={'anchor': 'free', 'position': 0.5, 'range': [0, 20]},
                                yaxis2={'anchor': 'free', 'position': 0.5, 'range': [0, 10]})

However when I do this the range of the additional axis system is the same as the main axis system.

How can I add an independent axis system of which I can set my own range?

This problem has been solved. It turned out that later in my code I was overwriting the axes limits.

Make sure that you do not do this and then range will work perfectly fine within update_layout