set key outside bottom set key box set key top left set terminal png set output 'zone.png' set xdata time set timefmt "%b %d %H:%M:%S %Y" set title "Zone Activity, Outside Temperature, Floor Water Temperature" set ylabel "Fahrenheit" set yrange [1:150] set xrange [*:*] set xlabel " " set grid set size 1.2 ,0.5 heat_on(a, b, c, d) = int(a) | int(b) | int(c) | int(d) # 'zone.data' using 1:(($5 | $7 | $8 | $9) * (1 - $6) * 35) t "Gas Heat" with points lc rgb "blue", \ plot 'munchkin_temperature.data' using 1:(($6 * 1.8) + 32) t "Supply" with lines, \ 'munchkin_temperature.data' using 1:(($5 * 1.8) + 32) t "Return" with lines, \ 'housetemps.input' using 1:5 t "Outside" with lines lc rgb "black", \ 'zone.data' using 1:($9 * 33) t "Back Bedroom" with points lc rgb "pink", \ 'zone.data' using 1:($8 * 26) t "Middle Bedroom" with points lc rgb "blue", \ 'zone.data' using 1:($7 * 19) t "Front Study" with points lc rgb "red", \ 'zone.data' using 1:($5 * 12) t "Rest of House" with points lc rgb "green", \ 'zone.data' using 1:(heat_on($5,$7,$8,$9) * (1 - $6) * 5) t "Gas Heat" with points lc rgb "blue", \ 'zone.data' using 1:(heat_on($5,$7,$8,$9) * $6 * 5) t "Solar Heat" with points lc rgb "brown"