From f7ad40d801e30f542baaf471e0b0d08aacc212ee Mon Sep 17 00:00:00 2001 From: Connor Moore Date: Fri, 20 Mar 2026 11:16:50 -0400 Subject: Updated class code --- class/movie_plot.gnu | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 class/movie_plot.gnu (limited to 'class/movie_plot.gnu') diff --git a/class/movie_plot.gnu b/class/movie_plot.gnu new file mode 100644 index 0000000..683753c --- /dev/null +++ b/class/movie_plot.gnu @@ -0,0 +1,20 @@ +set term x11 noraise +set xrange [-0.6:0.6] +set yrange [-0.6:0.6] +set size square +set key outside top center +set object rectangle from -0.5,-0.5 to 0.5,0.5 dt 3 + +stats 'trajectories.out' nooutput + +do for [i=0:STATS_blocks-1] { + plot 'trajectories.out' index i with points pt 7 ps 0.5 title sprintf("Frame %i out of %i", i, STATS_blocks-1) + pause 0.0001 +} + +set term gif size 500,500 animate delay 0.001 +set output "wiggly.gif" + +do for [i=0:STATS_blocks-1:5] { + plot 'trajectories.out' index i with points pt 7 ps 0.5 title sprintf("Frame %i out of %i", i, STATS_blocks-1) +} -- cgit v1.2.3