added links to files
[sxmo-sms-ssh] / battery.gnuplot
1 #!/usr/bin/gnuplot
2
3 set terminal xterm
4
5 set timefmt "%Y-%m-%dT%H:%M:%S"
6 set xdata time
7
8 #set ylabel "current"
9 set y2tics 10 nomirror
10 #set ytics nomirror
11 set y2tics autofreq tc lt 1
12
13 plot '/home/user/.local/state/battery.log' \
14         using 1:($3/1000) axis x1y1 title "mA" with points ps 0.7, \
15         '/home/user/.local/state/battery.log' \
16         using 1:($4/1000000) axis x1y2 title "V" with lines