From 6d17e30ee5af441a6951e0b691f557ce9845f751 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sat, 4 Apr 2015 18:52:26 -0700 Subject: scripts/plot-detector-shift: Fix aspect ratio, general improvements --- scripts/plot-detector-shift | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'scripts') 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 -- cgit v1.2.3