automate gnuplot script