set terminal png set output 'xantrex_panel_power.png' set xdata time set timefmt "%b %d %H:%M:%S %Y" set title "Panel Power" set ylabel "DC Watts" set yrange [0:5000] set xrange [*:*] set xlabel " " set grid set size 1.2 ,0.5 set key top left plot 'xantrex.data' using 1:(($9 * $7)) t "Panel Power Charge Controller 0" with lines lc rgb "red", \ 'xantrex.data' using 1:(($11 * $12)) t "Panel Power Charge Controller 1" with lines lc rgb "green", \ 'xantrex.data' using 1:(($9 * $7 + $11 * $12)) t "Total Panel Power" with lines lc rgb "black" set terminal png set output 'xantrex_battery_voltage.png' set xdata time set timefmt "%b %d %H:%M:%S %Y" set title "Panel and Battery Voltage" set ylabel "DC Volts" set yrange [0:100] set xrange [*:*] set xlabel " " set grid set size 1.2 ,0.5 set key top left plot 'xantrex.data' using 1:8 t "Battery Voltage" with lines lc rgb "black", \ 'xantrex.data' using 1:7 t "Panel Voltage 0" with lines lc rgb "red", \ 'xantrex.data' using 1:11 t "Panel Voltage 1" with lines lc rgb "green" set terminal png set output 'xantrex_battery_current.png' set xdata time set timefmt "%b %d %H:%M:%S %Y" set title "Battery Current" set ylabel "DC Amps" set yrange [-5:120] set xrange [*:*] set xlabel " " set grid set size 1.2 ,0.5 set key top left plot 'xantrex.data' using 1:(($10 * -1)) t "Inverter Current Draw (from Battery)" with lines lc rgb "black" set terminal png set output 'xantrex_ac_amps.png' set xdata time set timefmt "%b %d %H:%M:%S %Y" set title "Household Current (excluding garage, measured by Xantrex XW-6048 Inverter)" set ylabel "AC Amps" set yrange [*:*] set xrange [*:*] set xlabel " " set grid set size 1.2 ,0.5 set key top left plot 'xantrex.data' using 1:((-$5)) t "Utility Input" with lines, \ 'xantrex.data' using 1:6 t "Household demand" with lines lc rgb "black"