updated gnuplot script