size="$(tail -n 1 "$1" | cut -d . -f 1)"
test $size -gt 3600 && size="$(( $size/10 ))" #For prolonged periods
-size="$(( 200 + ($size * 2) ))"
+size="$(( 600 + $size ))"
gnuplot << EOF
set output "$1.png"
set grid
#set pointsize 0.5
-plot "$1" using 2:5 with histeps;
+plot "$1" using 2:5 with steps;
EOF