|
From: Kevin O. <rko...@gm...> - 2016-01-02 05:23:06
|
I am baffled by a failure I am having in attempting to generate a series of plots on a single image. The inputs are from stdin. I get only the first and last of the five plots, although the titles for all five are shown. No errors reported. I have recorded the stream sent to gnuplot and can see no problems, though I suspect I am missing a simpler way to do it. set term gif small size 800, 600 set grid xtics ytics;set xdata time set colors classic set timefmt "%H:%M";set xrange ["00:00":"23:45"] set title "Temperature" set format x "%H:%M" set output "/usr/local/www/data/rain.gif" set ylabel "Degrees Fahrenheit" plot "-" using 1:2 title "2016-01-01" with lines, "-" using 1:3 title "2015-12-31" with lines, "-" using 1:4 title "2015-12-30" with lists, "-" using 1:5 title "2015-12-29" with lists, "-" using 1:6 title "2015-12-28" with lists All lines are newline terminated and this is immediately followed by the data with the data for each plot. It's actually the same data five time with a different column used each time. Here is the final few lines of the 96 lines. 21:00 14.3 16.5 15.8 12.8 11.6 21:15 14.1 16.6 15.6 12.5 11.8 21:30 14.1 16.5 15.8 12.2 11.4 21:45 13.8 16.3 15.9 12.1 11.2 22:00 13.9 16.4 16.0 12.0 11.5 22:15 13.7 16.5 15.8 11.7 11.6 22:30 13.7 16.4 15.7 11.5 11.6 22:45 13.5 16.4 15.8 11.4 11.2 23:00 13.5 16.2 15.6 11.6 11.2 23:15 13.5 16.3 15.5 11.6 11.1 23:30 13.5 16.3 15.7 11.7 10.7 23:45 13.3 16.2 15.5 11.7 10.5 e 00:00 13.5 16.3 15.3 11.8 10.5 I m doing it this way because in some cases I include a date along with the time and it change for each plot. I can handle this with a simple substitution if the data array much more efficiently than I could re-write a file. Can anyone point out what I am doing wrong? -- Kevin Oberman, Part time kid herder and retired Network Engineer E-mail: rko...@gm... PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683 |