def METHOD_NAME(event):
    axes = event.inaxes
    if axes is None:
        return
    if isinstance(axes, Axes3D):
        # xdata and ydata will likely be meaningless
        return
    afaxes = axes._af
    if afaxes.i.reference == 'x':
        i = event.xdata
    elif afaxes.i.reference == 'y':
        i = event.ydata
    for artist in axes._af_callbacks.get_artists('update_indep'):
        if not hasattr(artist, '_af'):
            continue
        call = artist._af
        # TODO: need to clear artists from call and redraw with i=i