#! /bin/csh -f # Last edited on 2008-02-04 20:30:05 by stolfi set usage = "$0 MAXDIST NBINS HISTFILE EPSFILE BAND TITLE XUNITS" # Draws a histogram of sample distances squared # The maximum value is assumed to be MAXNUM/MAXDEN, with 25 bins # on each side of the origin. if ( $#argv != 7 ) then echo "usage: ${usage}"; exit 1 endif set maxdist = "$1"; shift set nbins = "$1"; shift set hfile = "$1"; shift set pfile = "$1"; shift set band = "$1"; shift; set title = "$1"; shift set xunits = "$1"; shift echo "${hfile} -> ${pfile}" gnuplot <