def METHOD_NAME(event):
    vis = annot.get_visible()
    if event.inaxes == ax:
        cont, ind = sc_plot.contains(event)
        if cont:
            update_annot(ind)
            annot.set_visible(True)
            fig.canvas.draw_idle()
        else:
            if vis:
                annot.set_visible(False)
                fig.canvas.draw_idle()