Step 3 works... sort of. Correct data is stored in x.dat and 0.03333.....dat. Also a combined x and y data file is in gnuplot.gp.