def plot(): 'Waring: Cannot stop this,once started' anim = FuncAnimation(layer.getLayer(), update, interval = 10) plt.show() #----------------------------------------------------------------------------