#! /bin/csh -f

foreach f ( $* )
set n = ${f:r}
gnuplot -geometry =500x500+300+200 <<EOF
set terminal X11
set title "$n"
plot "$n.plot" using 1:2 title "etot"       with lines, \
     "$n.plot" using 1:3 title "etotDs"     with lines, \
     "$n.plot" using 1:4 title "etotDc*cDs" with points
pause 30
plot "$n.plot" using 1:5 title "evar"       with lines, \
     "$n.plot" using 1:6 title "evarDs"     with lines, \
     "$n.plot" using 1:7 title "evarDc*cDs" with points, \
     "$n.plot" using 1:8 title "etot-evar"  with lines
pause 20
quit
EOF
end

