mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2024-11-25 18:57:11 +02:00
usrp/plot: enable grid and accept center sensitivity from the command line
This commit is contained in:
parent
417ef7b8c1
commit
044c1528c7
@ -1,15 +1,20 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
if [ -z "$1" ]; then
|
if [ -z "$1" ]; then
|
||||||
echo "usage: $0 file" 1>&2
|
echo "usage: $0 file [center]" 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
if [ ! -f "$1" ]; then
|
if [ ! -f "$1" ]; then
|
||||||
echo "$1: not found" 1>&2
|
echo "$1: not found" 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
c=${2:--25}
|
||||||
|
|
||||||
gnuplot -persist <<EOF
|
gnuplot -persist <<EOF
|
||||||
set xlabel "MHz"
|
set xlabel "MHz"
|
||||||
set ylabel "dB"
|
set ylabel "dB"
|
||||||
set yrange [-30:-20]
|
set yrange [$c-5:$c+5]
|
||||||
|
set grid
|
||||||
plot "<sed '\$d' $1" using (\$1):(log(\$3)/log(10)*10) with lines notitle
|
plot "<sed '\$d' $1" using (\$1):(log(\$3)/log(10)*10) with lines notitle
|
||||||
EOF
|
EOF
|
||||||
|
Loading…
Reference in New Issue
Block a user