How to fix overlapping xticks labels?


Is there a way to fix this?

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}
    )

But then the ticks are cut offโ€ฆ

    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.