#! /bin/sh
seed=$1
wait=$2
date=`date '+%D %H:%M'`

sm -s << FIN
if ($wait) {xterm_p} else {laser_pp linepluscov.s$seed.ps\n lweight 2}

macro plt 3 {
  sixwin \$1
  limits 4 21 0 15
  expand 0.9
  box
  da line.n20.s$seed.case\$2.dat
  read {x 1 y 2 err 3}
  ptype 20 3
  points x y
  errorbar x y err 2
  errorbar x y err 4
  connect x (2+0.5*x)
  limits 0 10 0 10
  relocate 5 -1.4
  putlabel 5 x 
  relocate -1.8 5
  putlabel 5 y
  relocate 0 10.5
  putlabel 6 \$3
}
plt 1 A "(a) diagonal"
plt 2 B "(b) offd=0.2"
plt 3 C "(c) offd=-0.2"
plt 4 D "(d) offd=0.4"
plt 5 E "(e) all offd=0.4"
#putdate "$date"
if ($wait) {!sleep $wait} else {hardcopy}
FIN
