#!/bin/bash

if [ -f fort.68 ] 
then

echo gnuplot is $gplot
awk '{print $0 >> "bidon"}' << EOF
#the gnuplot commands
set pm3d interpolate ii,ii map 
set style data pm3d
#set palette defined ( 0 "dark-blue", 1 "blue", 1.7 "green", 2.5 "yellow", 2.6 "yellow", 4 "red", 5 "dark-red" )
unset colorbox
set style line 7 linecolor rgbcolor "light-gray" lw 0 
set border 15 ls 7
#set border 0
set xtics nomirror
set ytics nomirror
set noxtics
set noytics
set bmargin 0
set lmargin 0
set rmargin 0
set tmargin 0
set size 1,1

splot 'fort.68' using 1:2:3:3 notitle
#end gnuplot commands
exit
EOF

$gplot bidon

else
echo No plot produced

fi