diff options
author | Robin Krahl <guskraro@student.gu.se> | 2017-10-23 15:02:10 +0200 |
---|---|---|
committer | Robin Krahl <guskraro@student.gu.se> | 2017-10-23 15:02:10 +0200 |
commit | 554af967ba70a545c04ad66a76899bb93fb0241c (patch) | |
tree | c98373d8a5e1e77427a951abc561592defb87b84 /broccoli/script | |
parent | 834d56a62113b049861aac56918a05bb6c44cbef (diff) | |
download | midbro-554af967ba70a545c04ad66a76899bb93fb0241c.tar.gz midbro-554af967ba70a545c04ad66a76899bb93fb0241c.tar.bz2 |
Update graph settings in livegraph.sh
Diffstat (limited to 'broccoli/script')
-rw-r--r-- | broccoli/script/livegraph.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/broccoli/script/livegraph.sh b/broccoli/script/livegraph.sh index 6a095c4..35914d1 100644 --- a/broccoli/script/livegraph.sh +++ b/broccoli/script/livegraph.sh @@ -18,7 +18,9 @@ fi function plot() { scp "${SCP_EXPR}/sensor.dat" "${SCP_EXPR}/distance.dat" . - echo "set terminal png; plot 'sensor.dat' using 0:1 with line, 'distance.dat' using 0:1 axis x1y2 with line"| gnuplot > live-tmp.png + tail -1000 sensor.dat > sensor-1000.dat + tail -1000 distance.dat > distance-1000.dat + echo "set terminal png; set yrange [17000:17300]; set y2range [0:300]; set ytics nomirror; set y2tics nomirror; set title 'Midbro/PASAD demo'; plot 'sensor-1000.dat' using 0:1 with line title 'sensor value', 'distance-1000.dat' using 0:1 axis x1y2 with line title 'distance'" | gnuplot > live-tmp.png mv live-tmp.png live.png } |