#! /bin/csh -f # Last edited on 2005-01-17 02:47:19 by stolfi # Plots the ".fsh" (shape function) files of the two segments # of a candidate. set usage = "???"; set atitle = "$1"; shift; set ashp = "$1"; shift; set btitle = "$1"; shift; set bshp = "$1"; shift; set atmp = "/tmp/$$-a.fsh" set btmp = "/tmp/$$-b.fsh" apply-unit ${ashp} > ${atmp} apply-unit ${bshp} > ${btmp} set xstep = '(0.0846777/4)' gnuplot << EOF set term postscript eps monochrome 14 set size ratio -1 1.5,0.85 set yrange [-2.2:2.2] set xrange [-0.4:11.2] plot "${atmp}" using (column(0)*${xstep}):1 title "${atitle}" with lines, \ "${btmp}" using (column(0)*${xstep}):1 title "${btitle}" with lines quit EOF /bin/rm -f ${atmp} ${btmp}