while (1) {
set datafile separator ','
set key autotitle columnhead

plot 'plot.dat' using 0:1, 'plot.dat' using 0:2, 'plot.dat' using 0:3, 'plot.dat' using 0:4
}