From 34f65b8fc30232036b0f290af36f1b5fc7199353 Mon Sep 17 00:00:00 2001 From: Jan Eitzinger Date: Fri, 1 Nov 2024 08:41:27 +0100 Subject: [PATCH] Add gnuplot sequence output for animated videos --- PoissonSolver/2D-seq/animate.plot | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 PoissonSolver/2D-seq/animate.plot diff --git a/PoissonSolver/2D-seq/animate.plot b/PoissonSolver/2D-seq/animate.plot new file mode 100644 index 0000000..4082e54 --- /dev/null +++ b/PoissonSolver/2D-seq/animate.plot @@ -0,0 +1,15 @@ +set term png size 1024,768 enhanced font ,12 +set datafile separator whitespace +set grid +set hidden3d +set xrange [0:40] +set yrange [0:40] +set zrange [-2:2] + +input(n) = sprintf("p-%d.dat", n) +output(n) = sprintf("%03d.png", n) + +do for [i=1:50] { + set output output(i) + splot input(i) matrix using 1:2:3 with lines +}