mei_rt2mei_rt2_fix_1
Last change
on this file since 08b8da7 was
08b8da7,
checked in by Mei <mei@…>, 12 years ago
|
1) rework examples directory with Makefile
2) update scaling with plotting scripts
3) add more doc in there
|
-
Property mode set to
100755
|
File size:
933 bytes
|
Rev | Line | |
---|
[08b8da7] | 1 | #!/bin/sh |
---|
| 2 | |
---|
| 3 | SET=$1 |
---|
| 4 | filename=${SET}_orig |
---|
| 5 | if [ ! -e $filename ] ; then |
---|
| 6 | exit |
---|
| 7 | fi |
---|
| 8 | |
---|
| 9 | ## generate the plot script |
---|
| 10 | make_script() { |
---|
| 11 | cat <<FIN > $DATA.p |
---|
| 12 | set title "$TITLE" |
---|
| 13 | set terminal jpeg medium size 640,480 |
---|
| 14 | set output "$DATA.jpeg" |
---|
| 15 | set autoscale |
---|
| 16 | unset log |
---|
| 17 | unset label |
---|
| 18 | set xtic auto |
---|
| 19 | set ytic auto |
---|
| 20 | set xlabel "Number of Credentials" |
---|
| 21 | set ylabel "$TYPE time ($TIME)" |
---|
| 22 | set xr [0:*] |
---|
| 23 | set yr [0:*] |
---|
| 24 | plot '$DATA1.dat' using $X:$Y title '$DATA1' with linespoints lt 8, \\ |
---|
| 25 | '$DATA2.dat' using $X:$Y title '$DATA2' with linespoints lt 1 |
---|
| 26 | FIN |
---|
| 27 | } |
---|
| 28 | |
---|
| 29 | X=1 |
---|
| 30 | Y=2 |
---|
| 31 | ### |
---|
| 32 | TYPE='Query Time' |
---|
| 33 | TITLE='Various GOOD Query Time' |
---|
| 34 | DATA=${SET}_goodquery |
---|
| 35 | DATA1=${SET}_mgood |
---|
| 36 | DATA2=${SET}_good1 |
---|
| 37 | TIME='microsec' |
---|
| 38 | make_script |
---|
| 39 | gnuplot $DATA.p |
---|
| 40 | ### |
---|
| 41 | TYPE='Query Time' |
---|
| 42 | TITLE='Various BAD Query Time' |
---|
| 43 | DATA=${SET}_badquery |
---|
| 44 | DATA1=${SET}_mbad |
---|
| 45 | DATA2=${SET}_bad1 |
---|
| 46 | TIME='microsec' |
---|
| 47 | make_script |
---|
| 48 | gnuplot $DATA.p |
---|
| 49 | |
---|
Note: See
TracBrowser
for help on using the repository browser.