From d9ef45234be408be4a3488284e51e0ab89a7dabd Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 5 Jan 2014 16:38:09 +1100 Subject: [PATCH] AP_NavEKF: useful plotting function --- .../AP_NavEKF/examples/AP_NavEKF/plotit.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 libraries/AP_NavEKF/examples/AP_NavEKF/plotit.sh diff --git a/libraries/AP_NavEKF/examples/AP_NavEKF/plotit.sh b/libraries/AP_NavEKF/examples/AP_NavEKF/plotit.sh new file mode 100755 index 0000000000..28179e0998 --- /dev/null +++ b/libraries/AP_NavEKF/examples/AP_NavEKF/plotit.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +cmd="plot " +echo $# +while [ $# -gt 1 ]; do + cmd="$cmd 'plot.dat' using 1:'$1'," + shift +done +cmd="$cmd 'plot.dat' using 1:'$1'" +cat < _plot.gnu +set style data lines +set xlabel "time(s)" +$cmd +pause -1 "hit return to exit" +EOF +gnuplot _plot.gnu +