#!/usr/bin/gnuplot

set terminal png
set output "cpu.png"
set title "CPU usage"
set xlabel "time"
set ylabel "percent"
set xdata time
set timefmt "%d-%m %H:%M:%S"
set format x "%H:%M"
plot "stat.dat" using 1:4 title "system" with lines, "stat.dat" using 1:3 title "user" with lines, "stat.dat" using 1:5 title "idle" with lines

