aboutsummaryrefslogtreecommitdiff
path: root/scripts/plot-detector-shift
blob: ad649c998a6b988ff161a5a99d895b90b0237d3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/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
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