set term pdf fontscale 0.5 size 5in,3in outfile = 'slope_summary.pdf' set output outfile set timestamp offset graph 1.14,0.7 rotate font 'Verdana,6' set label 'plotting_scripts/phase_space_to_hist.gnu' at graph 1.02,0.02 rotate left font 'Verdana,6' noenhance !pwd > directory !sed -n -e 's/^/name="/' -e 's/$/"/p' directory > name load 'name' print 'directory='.name set label at graph 0.0,1.02 name font 'Verdana,6' noenhance unset label 1 set label 1 at -0.3,-0.2 'gun' font ',14' set grid set xrange [-1:6] set xlabel 's [m]' set key left Left set ylabel "d{/Symbol f}_a/dx [rad/m]" plot 'config_034/20230125_190818/slope_summary.dat' u 2:3:4 w err t 'bmad','' u 2:($3-$3-.3):1 w labels not,'run2_2007/slope_summary.dat' u 2:3:4 w err t 'gm2r run2 2007','run3_A-G_3000/slope_summary.dat' u 2:3:4 w err t 'gm2r run3 A-G' ,'run3_I-L_3001/slope_summary.dat' u 2:3:4 w err t 'gm2r run3 I-L','run3_M_3002/slope_summary.dat' u 2:3:4 w err t 'gm2r run3 M','run3_N-O_3100/slope_summary.dat' u 2:3:4 w err t 'gm2r run3 N-O' set label 1 at -0.3,-2 'gun' font ',14' set yrange [-2.5:] set ylabel "d{/Symbol f}_a/dx'" plot 'config_034/20230125_190818/slope_summary.dat' u 2:5:6 w err t 'bmad','' u 2:($5-$5-2.25):1 w labels not,'run2_2007/slope_summary.dat' u 2:5:6 w err t 'gm2r run2 2007','run3_A-G_3000/slope_summary.dat' u 2:5:6 w err t 'gm2r run3 A-G','run3_I-L_3001/slope_summary.dat' u 2:5:6 w err t 'gm2r run3 I-L','run3_M_3002/slope_summary.dat' u 2:5:6 w err t 'gm2r run3 M', 'run3_N-O_3100/slope_summary.dat' u 2:5:6 w err t 'gm2r run3 N-O' print outfile