:  This is a site (hardware dependent) plot driver which expects
: a Printronix P300 line printer as /dev/lp.  Should live in
: /usr/bin.
if -r /tmp/plock echo "plotter busy"
endif
while -r /tmp/plock
sleep 30
end
echo $s >/tmp/plock
getlbl < /dev/tty$t
cp $1 $1$$
cp $3 $3$$
if -r /tmp/ax8xa then
	else fastax8
endif
cat filterm>>$1$$
cat filterm>>$3$$
if -r /tmp/plt_data_a then rm -f /tmp/plt_data_*
endif
fastscale $2 < $1$$
fastscale $4 -2 < $3$$
glabel
cat /tmp/ax8xa>>/tmp/plt_data_a
cat /tmp/ax8xb>>/tmp/plt_data_b
cat /tmp/ax8xc>>/tmp/plt_data_c
fastplt | dlpr -p
rm -f /tmp/glabel /tmp/exp /tmp/gscale /tmp/pltscale
rm -f /tmp/plt_data_* /tmp/plock /tmp/legend
rm -f $3$$ $1$$
