# HG changeset patch # User viric # Date 1324504924 -3600 # Node ID 3ed36b0e41bde0162999b2c7ad95d624bd66db05 # Parent f85465640dd42cc120a0664467f9a43786010ad6 Making the pce output a gnuplot script directly. diff -r f85465640dd4 -r 3ed36b0e41bd pce.c --- a/pce.c Wed Dec 21 22:26:20 2011 +0100 +++ b/pce.c Wed Dec 21 23:02:04 2011 +0100 @@ -198,6 +198,10 @@ fprintf(outfile, "# Time between samples: %i s\n", time_per_sample); + + fprintf(outfile, "set xdata time; set timefmt \"%%s\"; plot \"-\" using 2:3 " + "with lines title \"temp\", \"\" using 2:4 with lines title \"hum\"; pause -1\n"); + } int