set key outside bottom set key box set terminal png set output 'mbrtemps.png' set xdata time set timefmt "%b %d %H:%M:%S %Y" set title "Master Bedroom 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" w l lc rgb "black", \ 'housetemps.input' using 1:7 t "Subfloor" with lines, \ 'housetemps.input' using 1:12 title "Earth under MBR" w l, \ 'housetemps.input' using 1:16 title "Mid-insulation" w l, \ 'housetemps.input' using 1:10 title "Wall" w l, \ 'housetemps.input' using 1:6 title "Floor" w l, \ '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"