Added lines to generate gnuplot .plt file for plotting