#! /bin/csh -f 

set file = "$1"
set file = "${file:r}"

gnuplot <<EOF
set terminal X11
plot "$file.plt" using 1 with lines
pause 30
quit
EOF

echo "plot done"
