summaryrefslogtreecommitdiff
path: root/class/movie_plot.gnu
diff options
context:
space:
mode:
authorConnor Moore <connor@hhmoore.ca>2026-03-20 11:16:50 -0400
committerConnor Moore <connor@hhmoore.ca>2026-03-20 11:16:50 -0400
commitf7ad40d801e30f542baaf471e0b0d08aacc212ee (patch)
tree6474c10e962b9591feb2d30d675e5c9620003e05 /class/movie_plot.gnu
parent6ff45fe556d3b49a1506c5882036f909c143ed85 (diff)
Updated class code
Diffstat (limited to 'class/movie_plot.gnu')
-rw-r--r--class/movie_plot.gnu20
1 files changed, 20 insertions, 0 deletions
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)
+}