Using automargin seems to have fixed this.
fig.update_layout(
hovermode="closest",
hoverlabel_namelength=-1,
height=200 + 250 * (i + 1),
showlegend=False,
#margin=dict(l=50, r=10, b=200, t=50, pad=0),
font=C.figure_font,
xaxis={'automargin': True}
yaxis={'automargin': True}
)
fig.update_layout(
hovermode="closest",
hoverlabel_namelength=-1,
height=200 + 250 * (i + 1),
showlegend=False,
#margin=dict(l=None, r=None, b=200, t=None, pad=None),
font=C.figure_font,
xaxis={'automargin': True}
yaxis={'automargin': True}
)
This seems to be working.