```import numpy as np import matplotlib.pyplot as plt from matplotlib.animation import FuncAnimation from tkinter import * size = 8 head = 50 x=[head] y=[] x_data=