Why did you code x+i and t+i in set_xdata and set_ydata??
Why did you code x+i and t+i in set_xdata and set_ydata??