FinalModel.py
def run():
    """defined run function to generate the animation"""
    animation = matplotlib.animation.FuncAnimation(fig, update, frames=gen_function, repeat=False)  
    canvas.show()
    run(animation)
defined run function to generate the animation
defined run function to generate the animation
defined run function to generate the animation
def run():
    animation = matplotlib.animation.FuncAnimation(fig, update, frames=gen_function, repeat=False)  
    canvas.show()
    run(animation)
def run ( ) : animation = matplotlib . animation . FuncAnimation ( fig , update , frames = gen_function , repeat = False ) canvas . show ( ) run ( animation )
defined run function to generate the animation
defined run function to generate the animation
"""defined run function to generate the animation"""