X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;ds=sidebyside;f=c%2Fgoertzel%2Fsleepplot.sh;h=00d275a62fccdebeb5ed75c50b8d087a15966208;hb=b28afc5086a615b179adc680546ca72b51cd3a43;hp=6d682a8337d7adbd4c6502098fa7a6eb0c781a67;hpb=5769d767657e8177d9c18fb5349d74626dd4768a;p=mirrors%2FPrograms.git diff --git a/c/goertzel/sleepplot.sh b/c/goertzel/sleepplot.sh index 6d682a8..00d275a 100755 --- a/c/goertzel/sleepplot.sh +++ b/c/goertzel/sleepplot.sh @@ -17,7 +17,7 @@ size="$(( 600 + $size ))" #Plot it gnuplot << EOF set output "$graphout" -set terminal png size $size,300 +set terminal png size $size,400 set title "Sleep motions" set xlabel "time" @@ -34,9 +34,11 @@ set grid #set pointsize 0.5 plot\ "$in" using 2:5 title "Sensor state" with steps,\ -"" using 2:(\$6*3) title "Avg. 10s" with lines,\ +"" using 2:(\$6*2) title "Avg. 10s" with lines,\ "" using 2:(\$7*3) title "Avg. 30s" with lines,\ -"" using 2:(\$8*3) title "Avg. 120s" smooth bezier\ +"" using 2:(\$8*3) title "Avg. 60s" with lines,\ +"" using 2:(\$9*3) title "Avg. 90s" with lines,\ +"" using 2:(\$10*4) title "Avg. 120s" smooth bezier\ EOF