2011-04-13 01:43:45 +03:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
usage()
|
|
|
|
{
|
2011-04-13 02:53:17 +03:00
|
|
|
echo "usage: [-e] file ..." 1>&2
|
2011-04-13 01:43:45 +03:00
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
2011-04-13 02:53:17 +03:00
|
|
|
style=lines
|
|
|
|
if [ "$1" = -e ]; then
|
|
|
|
style=errorlines
|
|
|
|
shift
|
|
|
|
fi
|
|
|
|
|
2011-04-13 01:43:45 +03:00
|
|
|
[ "$1" ] || usage
|
2011-04-13 02:53:17 +03:00
|
|
|
|
2011-04-13 01:43:45 +03:00
|
|
|
files=
|
|
|
|
while [ "$1" ]; do
|
|
|
|
[ "$files" ] && files="$files, "
|
|
|
|
files="$files\"$1\""
|
|
|
|
shift
|
|
|
|
done
|
|
|
|
|
|
|
|
gnuplot -persist <<EOF
|
2011-04-13 02:53:17 +03:00
|
|
|
# the y range is not entirely correct - we have RSSI in [-94, -10], and
|
|
|
|
# TX in [-17, 3], so the theoretically possible range would be [-97, 7].
|
2011-04-13 01:43:45 +03:00
|
|
|
set yrange [-94:-10]
|
|
|
|
set ylabel "RX-TX power (dBm)"
|
|
|
|
set xlabel "Frequency (MHz)"
|
2011-04-13 02:53:17 +03:00
|
|
|
set bars small
|
|
|
|
set style data $style
|
2011-04-13 01:43:45 +03:00
|
|
|
plot $files
|
|
|
|
EOF
|