35 lines
373 B
Bash
35 lines
373 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
ASCFILE="nuage.asc"
|
||
|
IMAGE="pick3d.png"
|
||
|
|
||
|
make pickover
|
||
|
if [ $? -ne 0 ] ; then
|
||
|
echo
|
||
|
echo "Make error " $?
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
./pickover foo.pgm > $ASCFILE
|
||
|
if [ $? -ne 0 ] ; then
|
||
|
echo
|
||
|
echo "Pickover error " $?
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
|
||
|
gnuplot << __EOC__
|
||
|
set term png size 1024,768
|
||
|
set output "${IMAGE}"
|
||
|
|
||
|
set title "3D Pickover"
|
||
|
|
||
|
splot "$ASCFILE" with dots
|
||
|
|
||
|
__EOC__
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|