#! /bin/bash 
# Last edited on 2013-01-07 10:46:50 by stolfilocal

nd=$1; shift
datfile="$1"; shift
epsfile="$1"; shift
       
# Plot the filter weights:
gnuplot <<EOF

set term postscript eps color lw 2 "TimesRoman" 24
set size 1,2
set nokey

set yrange [-0.5:(${nd}+0.5)]
set format y '%.2f'
set title "splat weights"
set output "${epsfile}"
plot \
   "${datfile}"  using 2:(column(1)+column(3)) with steps lw 2

EOF
 
