set terminal cairolatex pdf size 2.5in,2.5in set output 'trajectories.tex' set linetype 1 lc rgb '#E41A1C' pt 7 ps 0.3 set linetype 2 lc rgb '#377EB8' pt 7 ps 0.3 set linetype 3 lc rgb '#4DAF4A' pt 7 ps 0.3 set linetype 4 lc rgb '#984EA3' pt 7 ps 0.3 set size square set xrange [-0.6:0.6] set yrange [-0.6:0.6] set object 1 rectangle from -0.5,-0.5 to 0.5,0.5 dt 2 #set key outside top center horizontal unset key unset xtics unset ytics #set xlabel "x [m]" #set ylabel "y [m]" plot 'traj_1.dat' using 2:3 with lines lt 1 title 'Particle 1', \ 'traj_2.dat' using 2:3 with lines lt 2 title 'Particle 2', \ 'traj_3.dat' using 2:3 with lines lt 3 title 'Particle 3'