set key outside bottom set key box set terminal png set output 'housetemps.png' set xdata time set timefmt "%b %d %H:%M:%S %Y" set title "Inside and Outside Temperatures" set ylabel "Fahrenheit" set yrange [30:90] set xrange [*:*] set xlabel " " set grid set size 1.2 ,0.5 set key top left heat_on(a, b, c, d) = int(a) | int(b) | int(c) | int(d) plot 'housetemps.input' using 1:5 t "Outside" with lines lc rgb "black", \ 'housetemps.input' using 1:8 t "Big Room" with lines, \ 'housetemps.input' using 1:10 title "Master Bedroom" w l, \ 'housetemps.input' using 1:14 title "Hall" with lines, \ 'zone.data' using 1:(heat_on($5,$7,$8,$9) * (1 - $6) * 35) t "Gas Heat" with points lc rgb "blue", \ 'zone.data' using 1:(heat_on($5,$7,$8,$9) * $6 * 35) t "Solar Heat" with points lc rgb "brown"