This is the thesis
[matches/honours.git] / thesis / simulation / egun / plot.sh~
diff --git a/thesis/simulation/egun/plot.sh~ b/thesis/simulation/egun/plot.sh~
new file mode 100755 (executable)
index 0000000..8654e78
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+output=$2
+if [ "$output" != "" ]; then
+       output="set term png size \"640,480\"; set output \"$output.png\""
+fi
+
+plot="main.dat"
+
+gnuplot --persist -e "set contour base; set cntrparam level incremental -1,0.25,1; unset surface; set table \"cont.dat\"; splot \"$plot\" u 1:2:3; unset table; $output; set xrange [0:]; set yrange [0:]; set zrange [-1:1]; set title \"$1\"; unset key; set palette rgbformulae 33,13,10; plot \"$plot\" w image, \"cont.dat\" w l lt -1 lw 1.5, \"$1\" u 2:3 w l lt 6 lw 3"

UCC git Repository :: git.ucc.asn.au