Simulation, Physics, Numerical Methods, Classical Mechanics, Computation.
plt.figure(figsize = (6,6)) plt.figure(figsize = (6,6)) plt.plot([0,x1[i]],[0,y1[i]], "o-", color = "b", markersize = 7, linewidth=.7 ) plt.plot([x1[i],x2[i]],[y1[i],y2[i]], "o-", color = "b", markersize = 7, linewidth=.7 ) plt.title("Double Pendulum") plt.xlim(-2.1,2.1) plt.ylim(-2.1,2.1)