#! /bin/csh -f
# Last edited on 2008-02-04 20:49:42 by stolfi

set usage = "$0 FILE"

# plots a histogram from a sorted cumulative frequency file.

if ( $#argv != 1 ) then
  echo "usage: ${usage}"; exit 1
endif

set file = "$1"; shift;

gnuplot -bg 'gray' << EOF
set term x11
set xrange [-0.49:50.51]
plot \
  "${file}" using (10*\$2) with histeps linetype 2, \
  "${file}" using 4 with histeps linetype 3
pause 300
quit
EOF

