Root/usrp/plot

Source at commit 850e9fca290d2354e97589ff1d5d684523218085 created 13 years 5 months ago.
By Werner Almesberger, More rm -rf to rm -f changes.
1#!/bin/sh
2if [ -z "$1" ]; then
3    echo "usage: $0 file" 1>&2
4    exit 1
5fi
6if [ ! -f "$1" ]; then
7    echo "$1: not found" 1>&2
8    exit 1
9fi
10gnuplot -persist <<EOF
11set xlabel "MHz"
12set ylabel "dB"
13set yrange [-30:-20]
14plot "<sed '\$d' $1" using (\$1):(log(\$3)/log(10)*10) with lines notitle
15EOF
16

Archive Download this file



interactive