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