#! /bin/csh -fe 

echo "MODIFICAR PARA LER ARQUIVOS DE CANDIDATOS"

set sam = "$1"; set sam = "${sam:r}"; shift
set mtc = "$1"; set mtc = "${mtc:r}"; shift
set nom = "$1"; set nom = "${nom:r}"; shift

set out = "${mtc}.ps"

gnuplot <<EOF
set terminal postscript
set output "${out}"
plot \
  "$sam.plt" using 2:4 title "same"         with points, \
  "$nom.plt" using 2:4 title "non-matching" with points, \
  "$mtc.plt" using 2:4 title "matching"     with points
quit
EOF
ghostview -openwindows -landscape "${out}"
echo "plot done"
