#!/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