aboutsummaryrefslogtreecommitdiff
path: root/scripts/plot-radius-resolution
blob: da7a047dbd97ae512001c38f4e7459df9f0c52de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

INFILE=$1

grep "profile_radius" $INFILE > plotme1.dat
grep "diffraction_resolution_limit" $INFILE > plotme2.dat
paste plotme1.dat plotme2.dat > plotme.dat
gnuplot -persist << EOF
set xlabel "Estimated crystal diameter (= 2/profile radius) / nm"
set ylabel "Resolution limit / nm^-1"
plot "plotme.dat" using (2/\$3):7
EOF