def METHOD_NAME(fig: OpenBBFigure, x, y, ticker, expiry, inst):
    fig.update_yaxes(title=clean_str(y))
    fig.update_xaxes(title=clean_str(x))
    expires = ", ".join(expiry)
    title = (
        f"{clean_str(y)} vs. {clean_str(x)} for {ticker.upper()} {inst}s on {expires}"
    )
    fig.update_layout(
        margin=dict(t=40),
        autosize=False,
        width=1000,
        height=500,
        title=dict(
            text=title,
            y=0.98,
            x=0.5,
            xanchor="center",
            yanchor="top",
        ),
    )