Skip to content
Snippets Groups Projects
Commit 5217dcfc authored by Armin Damon Riess's avatar Armin Damon Riess
Browse files

also plot center of mass

parent ac207383
No related branches found
No related tags found
No related merge requests found
......@@ -20,6 +20,7 @@ def animate(i):
yi = y[i*N:(i+1)*N]
plt.cla()
plt.scatter(xi, yi, s=0.1)
plt.scatter(np.sum(xi)/N, np.sum(yi)/N, s=1, c="red")
plt.xlabel("x")
plt.ylabel("y")
plt.axis("equal")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment