Trajectary for a buoy flow in the tasman sea with tail
问题 Im trying to make a plot the path of a buoy in the tasman sea. I got the buoy flowing around but I cannot find how i can give it a tail of the previous 5 steps. fig, ax = plt.subplots() # plot the map relative to time 0 using, instead of plt.contourf, ax.contourf: ssh_map = ax.contourf(sshlon,sshlat,np.transpose(ssh[:,:,0])) # add a colorbar with plt.colorbar(ssh_map) def animate(t): ax.clear() # plot the map relative to time t, also with ax.contourf ax.contourf(sshlon,sshlat,np.transpose(ssh