write to gnuplot format