Skip to content

Commit e45c454

Browse files
committed
Show power instead of voltage
1 parent 48f4cc0 commit e45c454

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

tools/visualize-power-last.gp

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
system('tail -n 1000 log > visualize-power-last.dat')
2-
system('tail -n 1000 log | ./make_stats 7 20 > visualize-power-last-candlesticks.dat')
2+
system('tail -n 1000 log | ./make_stats 8 20 > visualize-power-last-candlesticks.dat')
33

44
set key autotitle columnhead
55
set xlabel "time (UTC)"
@@ -11,20 +11,16 @@ set grid x y mx my lt 1 lc rgb 'gray90'
1111
set datafile separator ","
1212
set xrange [*:*]
1313
#set yrange [*:*]
14-
set yrange [-20:20.0]
14+
set yrange [-30:30.0]
1515

1616
# voltage: columns 8,11
17+
# power: columns 9,13
1718
plot \
18-
'visualize-power-last.dat' using 1:8 with lines lw 8.0 lc rgb '#ffffff00' notitle, \
19+
'visualize-power-last.dat' using 1:9 with lines lw 8.0 lc rgb '#ffffff00' notitle, \
1920
'visualize-power-last-candlesticks.dat' using 1:3:2:6:5 with candlesticks lw 2.0 lc rgb '#00ffaa00' notitle whiskerbars, \
20-
'visualize-power-last.dat' using ($1 - 0.3):11 with lines lw 3.0 lc rgb '#00f70000' title 'Hann moving avg.', \
21+
'visualize-power-last.dat' using ($1 - 0.3):13 with lines lw 3.0 lc rgb '#00f70000' title 'Hann moving avg.', \
2122
'visualize-power-last-candlesticks.dat' using 1:4 with dots lw 8.0 lc rgb '#00000000' notitle
2223

23-
# power: columns 9,13
24-
#plot \
25-
# 'visualize-power-last.dat' using 1:9 with lines lw 0.5 lc 11 title 'power corrected', \
26-
# 'visualize-power-last.dat' using 1:13 with lines lw 4.0 lc 14 title 'Hann moving avg.'
27-
2824
pause 1
2925
replot
3026
reread

0 commit comments

Comments
 (0)