diff options
author | Thomas White <taw@physics.org> | 2015-04-04 18:52:26 -0700 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2015-04-20 15:50:40 +0200 |
commit | 6d17e30ee5af441a6951e0b691f557ce9845f751 (patch) | |
tree | ea8b60bba14ef85081c8d643e6f269819b1dcb22 /scripts | |
parent | e92d30a52be9486179654453be270134be40a826 (diff) |
scripts/plot-detector-shift: Fix aspect ratio, general improvements
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/plot-detector-shift | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/plot-detector-shift b/scripts/plot-detector-shift index 3e191943..ad649c99 100755 --- a/scripts/plot-detector-shift +++ b/scripts/plot-detector-shift @@ -3,9 +3,12 @@ INFILE=$1 grep "predict_refine/det_shift" $INFILE > plotme.dat +echo "0 0" > plotme2.dat gnuplot -persist << EOF set xlabel "x shift / mm" set ylabel "y shift / mm" -plot "plotme.dat" using 4:7 -replot 0 lw 2 lc 0 +set size square +plot [-1:1] [-1:1] "plotme.dat" using 4:7 title "Detector shifts" +replot "plotme2.dat" using 1:2 w p ps 4 pt 6 title "0,0" EOF +rm -f plotme.dat plotme2.dat |