X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=thesis%2Fsimulation%2Fegun%2Fplot.sh;fp=thesis%2Fsimulation%2Fegun%2Fplot.sh;h=66c1bfadb8e34ce80d28ef678ada9fa3f76a5c6a;hb=66ef7590cb47f237f793079dd4689c8a2941498c;hp=0000000000000000000000000000000000000000;hpb=a0fee95dc5a9513c530afb6eeab956145d0380f3;p=matches%2Fhonours.git diff --git a/thesis/simulation/egun/plot.sh b/thesis/simulation/egun/plot.sh new file mode 100755 index 00000000..66c1bfad --- /dev/null +++ b/thesis/simulation/egun/plot.sh @@ -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 \"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"