set output 'compare_proj_dist_a.ps' 
set term postscript color enhanced 'Helvetica,18'  
set style line 1 lt rgb 'red' lw 3  
set style line 2 lt rgb 'sea-green' lw 3  
set style line 3 lt rgb 'blue' lw 3  
set style line 4 lt rgb 'cyan' lw 3  
set style line 5 lt rgb 'violet' lw 3  
set grid 
set key top right 
set ylabel 'Number of instances' 
set xlabel 'Value of distance x2 (cm) ' 
set title 'Projectile shots for one set of input values '
plot [140:250][0:700] 'foo.hist' using 1:2 with boxes    ls 1 t 'gaussian sims '  ,    630*exp(-(x-195.5)*(x-195.5)/(2.0*15.69*15.69))    ls 2 t 'propagation'  
set output 
quit 
