def METHOD_NAME():
    global last_plotted
    current_time = plot.get_xdata()[-1]
    if last_plotted == current_time:
        return
    last_plotted = current_time
    plt.xlim(0, plot.get_xdata()[-1])
    plt.ylim(plot.get_ydata().min(), plot.get_ydata().max())
    plt.draw()
    plt.pause(0.01)