#!/bin/bash

if [ -f fort.68 -a -f fort.67 ] 
then

echo gnuplot is $gplot
awk '{print $0 >> "bidon"}' << EOF
#the gnuplot commands
set pm3d map
set style data pm3d

set pm3d clip4in


set zrange[0:thresh]
set style line 9 linetype 1 lw 1 linecolor rgb "black"
splot 'fort.68' using 1:2:4:3 t gprintf("Clipping at error level threshold=%E ",thresh), 'fort.67' using 1:2:(0.0) with lines ls 9  notitle
#end gnuplot commands
exit
EOF

$gplot bidon

else
echo No plot produced

fi
