aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Krahl <guskraro@student.gu.se>2017-10-23 15:15:10 +0200
committerRobin Krahl <guskraro@student.gu.se>2017-10-23 15:15:10 +0200
commita97c2967c3683f10babbd61db6af3c1d2123c63d (patch)
treeb0bea7951e241e889ec9854d6d2acd47d5d11525
parent19da02e882d4501afd1d9fba13d2365d02e130a2 (diff)
downloadmidbro-a97c2967c3683f10babbd61db6af3c1d2123c63d.tar.gz
midbro-a97c2967c3683f10babbd61db6af3c1d2123c63d.tar.bz2
livegrap.sh: Add axis titles
-rwxr-xr-xbroccoli/script/livegraph.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/broccoli/script/livegraph.sh b/broccoli/script/livegraph.sh
index 88cd87f..4ecf1d1 100755
--- a/broccoli/script/livegraph.sh
+++ b/broccoli/script/livegraph.sh
@@ -20,7 +20,7 @@ function plot() {
scp -i /home/andreas/.ssh/pasadpi_rsa -P 8022 "${SCP_EXPR}/sensor.dat" "${SCP_EXPR}/distance.dat" .
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
+ echo "set terminal png; set yrange [17000:17300]; set y2range [0:300]; set ytics nomirror; set y2tics nomirror; set title 'Live demo'; set ylabel 'sensor value'; set y2label 'distance'; 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
}