def METHOD_NAME(fig, title, xtitle=None, ytitle=None, copyright=None):
    """
    Add titles, copyright and watermark
    """
    annotations = [dict(templateitemname="watermark")]
    if copyright:
        annotations += [
            dict(
                templateitemname="watermark",
                text=f"{copyright} © {year}",
                font=dict(color="black", size=16),
                y=0.1,
            )
        ]
    if xtitle:
        fig.update_layout(xaxis_title=xtitle)
    if ytitle:
        fig.update_layout(yaxis_title=ytitle)
    fig.update_layout(
        title=title,
        hovermode="x",
        template=nyx_tpl,
        annotations=annotations,
    )