#! /bin/csh -fe
# Last edited on 1998-11-14 04:00:02 by hcgl

set file = "$1"

set ofile = "${file:r}"
set ofile = "${ofile:t}"
gnuplot <<EOF
set terminal postscript
set output "${ofile}-fpw.ps"
plot \
  "< gawk '/^[^#]/ {print \$1,\$3}' ${file}.fpw" \
  using 1:2 title "freqs" \
  with impulses
#pause 100
quit
EOF

ghostview ${ofile}-fpw.ps

gnuplot <<EOF
set terminal postscript
set output "${file}-bpw.ps"
plot \
  "< gawk '/^[^#]/ {print \$2,\$3}' ${file}.bpw" \
  using 1:2 title "freqs" \
  with impulses
#pause 100
quit
EOF

 ghostview ${ofile}-bpw.ps

