GIT.Harvie.CZ
/
mirrors
/
Programs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Gnuplot scaling fixed
[mirrors/Programs.git]
/
c
/
goertzel
/
sleepplot.sh
diff --git
a/c/goertzel/sleepplot.sh
b/c/goertzel/sleepplot.sh
index 09fd050ccab6659a384d199a84569c4e5c528265..45e80949fd230cc14c9359a70680f79c682dba79 100755
(executable)
--- a/
c/goertzel/sleepplot.sh
+++ b/
c/goertzel/sleepplot.sh
@@
-7,7
+7,7
@@
test -z "$1" && {
size="$(tail -n 1 "$1" | cut -d . -f 1)"
test $size -gt 3600 && size="$(( $size/10 ))" #For prolonged periods
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"
gnuplot << EOF
set output "$1.png"
@@
-29,7
+29,7
@@
set timefmt "%s"
set grid
#set pointsize 0.5
set grid
#set pointsize 0.5
-plot "$1" using 2:5 with
hi
steps;
+plot "$1" using 2:5 with steps;
EOF
EOF
This page took
0.094287 seconds
and
4
git commands to generate.