Revision 2009,
1.3 KB
checked in by bittner, 18 years ago
(diff) |
|
-
Property svn:executable set to
*
|
Rev | Line | |
---|
[1754] | 1 | #!/bin/sh |
---|
[2009] | 2 | #unalias rm |
---|
[1754] | 3 | |
---|
| 4 | rm -f *.tmpplot* |
---|
| 5 | |
---|
| 6 | PFILE=plot.fig |
---|
| 7 | FILE=tmp.plot |
---|
| 8 | echo $FILE |
---|
| 9 | rm -f $FILE |
---|
| 10 | #echo set term postscript eps monochrome dashed \"Times-Roman\" 24 > $FILE |
---|
| 11 | #echo set term postscript eps color solid > $FILE |
---|
| 12 | echo set term fig color fontsize 10 big landscape > $FILE |
---|
| 13 | echo set output \"$PFILE\" >> $FILE |
---|
| 14 | |
---|
| 15 | |
---|
| 16 | #echo set term x11 > $FILE |
---|
| 17 | #echo set grid >> $FILE |
---|
| 18 | STYLE=$1 |
---|
| 19 | echo set xlabel \"$2\" >> $FILE |
---|
| 20 | echo set ylabel \"$3\" >> $FILE |
---|
| 21 | #echo set yrange \[0:100\] >> $FILE |
---|
| 22 | |
---|
| 23 | # echo set boxwidth 0.4 >> $FILE |
---|
| 24 | |
---|
| 25 | #echo set logscale x >> $FILE |
---|
| 26 | echo -n plot >> $FILE |
---|
| 27 | |
---|
| 28 | |
---|
| 29 | PAR1=$2 |
---|
| 30 | PAR2=$3 |
---|
| 31 | NAME=A |
---|
| 32 | |
---|
| 33 | shift |
---|
| 34 | shift |
---|
| 35 | shift |
---|
| 36 | |
---|
| 37 | pt=1 |
---|
| 38 | lt=1 |
---|
| 39 | |
---|
| 40 | for i in $* ; do |
---|
| 41 | echo $i ; |
---|
| 42 | echo $NAME |
---|
| 43 | grep -A 1 $PAR1 $i | grep -v "\-\-" | grep -v "#" > $i.tmpplot.x ; |
---|
| 44 | grep -A 1 $PAR2 $i | grep -v "\-\-" | grep -v "#" > $i.tmpplot.y ; |
---|
| 45 | paste $i.tmpplot.x $i.tmpplot.y > $i.tmpplot ; |
---|
| 46 | if test $i != $1 ; then echo -n ", ">>$FILE; fi |
---|
| 47 | echo -n " "\"$i.tmpplot\" title \"$NAME\" with $STYLE" " lt $pt >>$FILE ; |
---|
| 48 | YPLOT="$YPLOT $i.tmpplot.y"; |
---|
| 49 | case $NAME in |
---|
| 50 | A) NAME=B;; |
---|
| 51 | B) NAME=C;; |
---|
| 52 | C) NAME=D;; |
---|
| 53 | D) NAME=E;; |
---|
| 54 | E) NAME=F;; |
---|
| 55 | F) NAME=G;; |
---|
| 56 | esac; |
---|
| 57 | let pt=$pt+1; |
---|
| 58 | done ; |
---|
| 59 | echo >> $FILE |
---|
| 60 | paste $1.tmpplot.x $YPLOT | grep -v "#" |
---|
| 61 | |
---|
| 62 | cat $FILE |
---|
| 63 | gnuplot $FILE |
---|
| 64 | rm -f $FILE |
---|
| 65 | rm -f *.tmpplot* |
---|
| 66 | |
---|
Note: See
TracBrowser
for help on using the repository browser.