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

configuring animation script for euler

parent 5204a982
No related branches found
No related tags found
No related merge requests found
...@@ -22,7 +22,8 @@ def animate(i): ...@@ -22,7 +22,8 @@ def animate(i):
plt.scatter(xi, yi, s=1) plt.scatter(xi, yi, s=1)
plt.xlim(-1, 1) plt.xlim(-1, 1)
plt.ylim(-1, 1) plt.ylim(-1, 1)
plt.axis("equal")
animation = FuncAnimation(fig, animate, frames=nSteps) animation = FuncAnimation(fig, animate, frames=nSteps)
animation.save("animation.mp4", writer="ffmpeg") mp4writer = animation.FFMpegWriter(fps=30)
plt.show() animation.save("animation.mp4", writer=mp4writer)
\ No newline at end of file \ No newline at end of file
...@@ -13,4 +13,6 @@ export OMP_NUM_THREADS=48 ...@@ -13,4 +13,6 @@ export OMP_NUM_THREADS=48
cd build/ cd build/
make make
./nbody ./nbody
cd ../plots/
python3 animation.py
cd .. cd ..
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