Root/tools/atrf-path/plot

Source at commit cec05a0f5ea2fb4ff5637d418c7f5dae196abda8 created 6 years 9 months ago.
By Werner Almesberger, atusb/atusb.pro: we don't use power.lib anymore
1#!/bin/sh
2
3usage()
4{
5    echo "usage: [-e] file ..." 1>&2
6    exit 1
7}
8
9style=lines
10if [ "$1" = -e ]; then
11    style=errorlines
12    shift
13fi
14
15[ "$1" ] || usage
16
17files=
18while [ "$1" ]; do
19    [ "$files" ] && files="$files, "
20    files="$files\"$1\""
21    shift
22done
23
24gnuplot -persist <<EOF
25# the y range is not entirely correct - we have RSSI in [-94, -10], and
26# TX in [-17, 3], so the theoretically possible range would be [-97, 7].
27set yrange [-94:-10]
28set ylabel "RX-TX power (dBm)"
29set xlabel "Frequency (MHz)"
30set bars small
31set style data $style
32plot $files
33EOF
34

Archive Download this file



interactive