Y1 axis scale changes when xaxis_rangeslider_visible = false

Below you see i have a chart, where the x-axis slider is shown, and below it i have two sub-panels.
Unfortunately, i havent been able to figure out how to get the slider to show below these two panels as yet (separate thread on this issue: Positioning slider under multiple subplots - #2 by empet)

image

So for now i am just hiding the slider using the following:

fig.update_layout(xaxis_rangeslider_visible=False, xaxis_type=โ€œdateโ€)
fig.update_yaxes(autorange = True, fixedrange= False)

Unfortunately, when i do this, the scale of the right y-axis changes drastically, causing the plot to effectively be displayed as a line. Above the y-axis range is from 0 to 0.48. Below itโ€™s from -10M to 10M!

image

Does anyone know how to resolve this issue?

It seems my issue was with the following:

fig.update_layout(margin=dict(l=20, b=50, t=50), font_size=10,
hovermode=โ€˜x unifiedโ€™,dragmode=โ€˜zoomโ€™, spikedistance = -1,
yaxis2=dict(side=โ€˜leftโ€™, overlaying=โ€œyโ€, scaleanchor=โ€˜yโ€™, scaleratio=20, constrain=โ€˜domainโ€™))

If i removed the scale parameters, the y-axis scales properly and the chart is able to be displayed correctly when the slider is hidden. I am not sure why those parameters affected this. I included them to to try and scale down the left axis so that it showed twoards the bottom 1/8 th of the main plot