set terminal postscript enhanced color 'Times-Roman' 22 set output "mismatch_beta_eta.ps" set key set xlabel "s[m]" set ylabel "{/Symbol b}[m]" set y2label "{/Symbol h}[m]" xmax=60.5810 set grid set xrange [0:44.468] set yrange [0:] set ytics 0,5 set xtics 0,10 #set mxtics 10 #set label "bend" at 4.9,-2.5 #set label "bend" at 16.,-2.5 #set label "bend" at 27.,-2.5 #set label "D" at 2.,-2.5 #set label "D" at 9.,-2.5 #set label "D" at 13.,-2.5 #set label "D" at 21.,-2.5 #set label "D" at 25.,-2.5 #set label "D" at 33.,-2.5 offset = 0. plot "twiss_file.dat" u 1:3 w l t "{/Symbol b}@_x" lt 1 lc 1 lw 1.5,\ "twiss_file.dat" u 1:5 w l t "{/Symbol b}@_y" lt 1 lc 3 lw 1.5, \ "twiss_file.dat" u 1:($7) w l t "{/Symbol h}@_x" lt 1 lc 7 lw 1.5 #,\ # "cell_arc_bend.dat" u($1-offset):2 t "" w filledcurves,\ # "cell_arc_sbend_k1.dat" u ($1-offset):2 t "ES quad" lt 6 w filledcurves,\ # "inflector.dat" u ($1-offset):2 t "inflector" lt 9 w filledcurves,\ # "iron.dat" u ($1-offset):2 t "backleg iron" lt 10 w filledcurves,\ # "cell_arc_quad.dat" u ($1-offset):2 t "Quad" lt 5 w filledcurves # # "cell_arc_quad.dat" index 0:0 u ($1-offset):2 t "fringe" lt 5 w filledcurves,\ # "cell_arc_quad.dat" index 1:1 u ($1-offset):2 notitle lt 5 w filledcurves,\ # "cell_arc_quad.dat" index 2:2 u ($1-offset):2 t "F-quad" lt 7 w filledcurves,\ # "cell_arc_quad.dat" index 3:3 u ($1-offset):2 t "D-quad" lt 8 w filledcurves,\ # "cell_arc_quad.dat" index 4:4 u ($1-offset):2 notitle lt 7 w filledcurves,\ # "cell_arc_quad.dat" index 5:5 u ($1-offset):2 notitle lt 8 w filledcurves # "cell_arc_quad.dat" index 1:1 u ($1):2 t "" lt 9 w filledcurves,\ # "cell_arc_quad.dat" index 2:2 u ($1):2 t "" lt 9 w filledcurves,\ # "cell_arc_quad.dat" index 3:3 u ($1):2 t "" lt 5 w filledcurves,\ # "cell_arc_quad.dat" index 4:4 u ($1):2 t "" lt 5 w filledcurves,\ # "cell_arc_quad.dat" index 5:5 u ($1):2 t "" lt 9 w filledcurves,\ # "cell_arc_quad.dat" index 6:6 u ($1):2 t "" lt 9 w filledcurves,\ # "cell_arc_quad.dat" index 7:7 u ($1):2 t "" lt 5 w filledcurves,\ # "cell_arc_quad.dat" index 8:8 u ($1):2 t "" lt 5 w filledcurves,\ # "cell_arc_quad.dat" index 9:9 u ($1):2 t "" lt 9 w filledcurves,\ # "cell_arc_quad.dat" index 10:10 u ($1):2 t "" lt 9 w filledcurves,\ # "cell_arc_quad.dat" index 11:11 u ($1):2 t "" lt 5 w filledcurves