def METHOD_NAME(dsrc, xyplot, update_limits=False):
    """Update the associated plot with the current set of points.
    If `update_limits` is `True` then the plot limits will be updated
    with the current limits of the data.
    """
    arr = dsrc.get_points()
    if update_limits:
        limits = dsrc.get_limits()
        xyplot.plot(arr, limits=limits)
    else:
        xyplot.plot(arr)