unset border; unset tics; unset key; set term gif animate delay 50 set output "trace.gif" set xrange [0:30] set yrange [0:4] do for [ts=0:23] { plot "particles_".ts.".dat" with points pointtype 7 } unset output