# script to display the power consumption set terminal png font "DroidSansMono,11" set output "power.png" # define time format for input set xdata time set timefmt "%m/%d/%y %H:%M:%S" # This is the source file plus a filter for the last 1500 entries srcfile='< tail -n 1500 /home/chris/construction/BTUmetering/log/heat_AHU2.log' set title "AHU level 2" set xlabel "Time" set ylabel "Heat load (kW)" set grid xtics ytics plot srcfile using 1:5 w l notitle