set multiplot set xlabel font 'Verdana,20' set ylabel font 'Verdana,20' set xtics font 'Verdana,20' set ytics font 'Verdana,20' set origin 0.,0. set size 1.,0.5 set grid set xlabel "element index" set ylabel "x [mm]" set xrange [0:1293] set yrange [-50:50] plot "trajectory.dat" i 1 u ($1):($2*1000) t "" w lines lt rgb "red" plot "trajectory.dat" i 2 u ($1):($2*1000) t "" w lines lt rgb "green" plot "trajectory.dat" i 3 u ($1):($2*1000) t "" w lines lt rgb "blue" plot "trajectory.dat" i 4 u ($1):($2*1000) t "" w lines lt rgb "red" plot "trajectory.dat" i 5 u ($1):($2*1000) t "" w lines lt rgb "green" plot "trajectory.dat" i 6 u ($1):($2*1000) t "" w lines lt rgb "blue" plot "trajectory.dat" i 7 u ($1):($2*1000) t "" w lines lt rgb "red" plot "trajectory.dat" i 8 u ($1):($2*1000) t "" w lines lt rgb "green" plot "trajectory.dat" i 9 u ($1):($2*1000) t "" w lines lt rgb "blue" plot "trajectory.dat" i 10 u ($1):($2*1000) t "" w lines lt rgb "red" set origin 0.,0.5 set ylabel "px [mrad]" set yrange [-10:10] plot "trajectory.dat" i 1 u ($1):($3*1000) t "" w lines lt rgb "red" plot "trajectory.dat" i 2 u ($1):($3*1000) t "" w lines lt rgb "green" plot "trajectory.dat" i 3 u ($1):($3*1000) t "" w lines lt rgb "blue" plot "trajectory.dat" i 4 u ($1):($3*1000) t "" w lines lt rgb "red" plot "trajectory.dat" i 5 u ($1):($3*1000) t "" w lines lt rgb "green" plot "trajectory.dat" i 6 u ($1):($3*1000) t "" w lines lt rgb "blue" plot "trajectory.dat" i 7 u ($1):($3*1000) t "" w lines lt rgb "red" plot "trajectory.dat" i 8 u ($1):($3*1000) t "" w lines lt rgb "green" plot "trajectory.dat" i 9 u ($1):($3*1000) t "" w lines lt rgb "blue" plot "trajectory.dat" i 10 u ($1):($3*1000) t "" w lines lt rgb "red"