set term postscript color enhanced "Times-Roman" 24 set output "bfield_along_injection_axis.ps" set key left Left set xlabel "z [cm]" set ylabel "Magnetic field [kG]" #set yrange [0:5] set yrange [-16:16] #set label '{/Symbol Dq}_x=24.6 mrad' at 3.0,-4 #set label '{/Symbol Dq}_y=8.03 mrad' at 3.0, -4.5 set arrow from 30,-3.5 to 160, -3.5 heads set label "backleg iron" at 50,-4.5 set arrow from 160, -3.5 to 260, -3.5 heads set label "gap" at 200,-4.5 set arrow from 180,3 to 300,3 heads lt 2 lc 3 set label "gradient" at 220, 4. set arrow from 260,-3.5 to 430,-3.5 heads #set object rectangle from 2.6,0.9 to 4.3,-0.9 set label "inflector" at 291, -2 plot "Bfield_Without_Inflector_along_injection_axis.dat" u 3:(-$5/1000) w l lt 1 lc 1 lw 2 t 'Dipole field', "Bfield_Inflector_along_injection_axis.dat" u 3:(-$5/1000) w l lt 1 lc 2 lw 2 t "Inflector field"