Fortraneries/Fraktalism/plotpick.sh

35 lines
373 B
Bash
Raw Normal View History

2022-02-16 00:18:35 +01:00
#!/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__