AP_NavEKF: useful plotting function

This commit is contained in:
Andrew Tridgell 2014-01-05 16:38:09 +11:00
parent 0816642436
commit d9ef45234b
1 changed files with 17 additions and 0 deletions

View File

@ -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 <<EOF > _plot.gnu
set style data lines
set xlabel "time(s)"
$cmd
pause -1 "hit return to exit"
EOF
gnuplot _plot.gnu