set term postscript color enhanced 'Times-Roman' 22 !rm inj_traj.ps set output 'inj_traj.ps' set key right bottom set xlabel 'z [m]' set ylabel 'displacement from centerline of e821 inflector [cm]' set xrange [0:5] set yrange [-5:2] set style fill transparent solid 0.50 set arrow from 0.0,-3.5 to 1.6, -3.5 heads set label "backleg iron" at 0.2,-4 set arrow from 1.6, -3.5 to 2.6, -3.5 heads set label "fringe field" at 1.62,-4 set arrow from 1.8,-1.8 to 3.,-1.8 heads set label "gradient" at 2.0, -2 #set label "inflector" at 3.18, -1.2 set label '18mm inflector' at 3,-1.2 #set label '36mm inflector' at 3,1.6 #set arrow from 4.2,1.4 to 4.5,1.4 lc rgb "green" lt 1 set arrow from 4.2,0.0 to 4.5,0.0 lc rgb "red" lt 1 theta = -0.0024 x0=430 y0=0. plot '../../plotting_scripts/inflectors.dat' u (((($1-x0)*cos(theta)+($2-y0)*sin(theta))+x0)/100.):(y0-(($2-y0)*cos(theta) - ($1-x0)*sin(theta))) i 0:0 w filledcurves lc rgb "red" not ,\ 'injection_line_trajectory_old_inf.dat' u 1:($2*100) w l lw 2 lt 1 lc 1 t '18mm inflector' #'../../plotting_scripts/inflectors.dat' u 1:2 i 1:1 w filledcurves lc rgb "green" not,\ #'../../plotting_scripts/inflectors.dat' u 1:2 i 1:1 w l lc rgb "green" not,\ # 'injection_line_trajectory_23mm.dat' u 1:($2*100) w l lw 2 lt 1 lc 2 t '36mm inflector',\