#! /bin/csh -f

set guy = "$1"; shift
set elem = "$1"; shift
set pfile = "$1"; shift

gnuplot \
  -bg black \
  -pointsize 2 \
  -xrm 'gnuplot*background:black' \
  -xrm 'gnuplot*textColor:yellow' \
<<EOF
set terminal pbm color medium
set output "${pfile:r}.ppm"
set xlabel "language A"
set ylabel "language B"
set logscale xy
set xrange [0.49999:10000]
set yrange [0.49999:10000]
set size 1.0,1.1
plot "${pfile}" using 1:2 title "${elem} (${guy}) =" with points
quit
EOF

ppmtogif < ${pfile:r}.ppm > ${pfile:r}.gif

xv ${pfile:r}.gif
