set key outside bottom set key box set terminal png set output 'solar.png' set xdata time set timefmt "%b %d %H:%M:%S %Y" # set title "Solar Hot Water & Domestic Hot Water Temperatures" set ylabel "Fahrenheit" set yrange [1:*] set xrange [*:*] set xlabel " " set grid set size 1.4 ,0.6 set key top left heat_on(a, b, c, d) = int(a) | int(b) | int(c) | int(d) plot 'housetemps.input' using 1:9 t "Rightmost Solar Panel Air" with l lc rgb "red", \ '../solar/pooltemps.input' using 1:7 t "Leftmost Solar Panel Air" with l lc rgb "blue", \ 'housetemps.input' using 1:13 t "Hot Water Supply To House" with l lc rgb "orange", \ 'housetemps.input' using 1:17 t "Hot Water Heat Exchanger Input" with l lc rgb "green", \ 'housetemps.input' using 1:15 t "Solar Water Tank (probe @ top)" with l lc rgb "black", \ 'housetemps.input' using 1:18 t "Solar Pump Case Temperature" with l lc rgb "grey", \ 'housetemps.input' using 1:($19-30) t "Solar Pump On" with points lc rgb "orange", \ 'zone.data' using 1:(heat_on($5,$7,$8,$9) * (1 - $6) * 10) t "Heating Floors With Gas" with points lc rgb "blue", \ 'zone.data' using 1:(heat_on($5,$7,$8,$9) * $6 * 10) t "Heating Floors With Solar" with points lc rgb "brown" # 'housetemps.input' using 1:($20-30) t "Recirculation Pump On" with points lc rgb "purple", \