aboutsummaryrefslogtreecommitdiff
path: root/scripts/plot-detector-shift
blob: a456b18cc3cd4ea0d06928cb302b9e2396d8f1ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

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"
set size square
set grid
plot [-2:2] [-2:2] "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