--- /dev/null
+#!/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 \"TCS Electron Gun\"; 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"