Root/tools/atrf-path/plot

Source at commit b0a3001ca23e9ba9a0d004b9971563cc5ef659ea created 7 years 3 months ago.
By Werner Almesberger, atusb/atusb.kicad_pcb (C15): resolve silk screen on pad; add via
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