Fixes to total power plot generation

This commit is contained in:
adamdunkels 2008-01-08 08:28:09 +00:00
parent f6b4022511
commit df9d43c62d
2 changed files with 6 additions and 5 deletions

View File

@ -14,6 +14,7 @@ for f in `echo data-*`
cp lost-$f lost
cp dup-$f dup
cp parent-$f parent
cp power-$f power
gnuplot plot-all
for p in `echo plot-*.eps`
do

View File

@ -8,18 +8,18 @@ set style fill pattern
#set key top left Left width -5
plot [:] [0:] \
'power' using \
'total-power' using \
2:((0.0545 * $3 + 1.8 * $4 + 20.0 * $5 + 17.7 * $6 + 4.6 * $7) / 4096) * 3 / $1 \
with boxes title "Red LED", \
'power' using \
'total-power' using \
2:((0.0545 * $3 + 1.8 * $4 + 20.0 * $5 + 17.7 * $6) / 4096) * 3 / $1 \
with boxes title "Radio transmit", \
'power' using \
'total-power' using \
2:((0.0545 * $3 + 1.8 * $4 + 20.0 * $5) / 4096) * 3 / $1 \
with boxes title "CPU low-power mode", \
'power' using \
'total-power' using \
2:((1.8 * $4 + 20.0 * $5) / 4096) * 3 / $1 \
with boxes title "CPU active mode", \
'power' using \
'total-power' using \
2:((20.0 * $5) / 4096) * 3 / $1 \
with boxes title "Radio reception"