Computational Physics, Python, Math, Physics.
fontname = "serif", fontsize = 16) ax.set_xlabel("x [m]", fontname = "serif", fontsize = 14) ax.set_ylabel("$u$ [m]", fontname = "serif", fontsize = 14) def init(): line.set_data([],[]) return line, # animation function. This is called sequentially def animate(i): line.set_data(x,