set terminal png size 1200, 600 set output "graph.png" set xdata time set timefmt "%Y%m%d%H%M%S" set format x "%Y%m%d %H:%M" set mytics 2 set grid xtics ytics mytics plot \ 'log.txt' using 1:6 with lines title "Max Cap (mWh)", \ 'log.txt' using 1:7 with lines title "Remaining Cap (mWh)", \ 'log.txt' using 1:8 with lines title "Rate (mW)", \ 'log.txt' using 1:9 with lines title "Remaining Time (s)"