mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-21 07:19:46 +08:00
46 lines
775 B
Bash
46 lines
775 B
Bash
|
#! /bin/bash
|
||
|
WHAT=$1
|
||
|
DIR=$2
|
||
|
cat ../${WHAT}.hh > ${WHAT}.gnuplot
|
||
|
|
||
|
DATA_FILE=`cat ../order_lib`
|
||
|
|
||
|
echo plot \\ >> $WHAT.gnuplot
|
||
|
|
||
|
for FILE in $DATA_FILE
|
||
|
do
|
||
|
LAST=$FILE
|
||
|
done
|
||
|
|
||
|
|
||
|
for FILE in $DATA_FILE
|
||
|
do
|
||
|
if [ $FILE != $LAST ]
|
||
|
then
|
||
|
echo "'"$FILE"'" ",\\" >> $WHAT.gnuplot
|
||
|
fi
|
||
|
done
|
||
|
echo "'"$LAST"'" >> $WHAT.gnuplot
|
||
|
|
||
|
echo set term postscript color >> $WHAT.gnuplot
|
||
|
echo set output "'"../${DIR}/$WHAT.ps"'" >> $WHAT.gnuplot
|
||
|
#echo set term pbm color >> $WHAT.gnuplot
|
||
|
#echo set output "'"../${DIR}/$WHAT.ppm"'" >> $WHAT.gnuplot
|
||
|
echo plot \\ >> $WHAT.gnuplot
|
||
|
for FILE in $DATA_FILE
|
||
|
do
|
||
|
if [ $FILE != $LAST ]
|
||
|
then
|
||
|
echo "'"$FILE"'" ",\\" >> $WHAT.gnuplot
|
||
|
fi
|
||
|
done
|
||
|
echo "'"$LAST"'" >> $WHAT.gnuplot
|
||
|
|
||
|
gnuplot -persist < $WHAT.gnuplot
|
||
|
|
||
|
rm $WHAT.gnuplot
|
||
|
|
||
|
|
||
|
|
||
|
|