mei_rt2mei_rt2_fix_1
Last change
on this file since c6d5da3 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:
936 bytes
|
Line | |
---|
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 3, \\ |
---|
26 | '$DATA3.dat' using $X:$Y title '$DATA3' with linespoints lt 1, \\ |
---|
27 | '$DATA4.dat' using $X:$Y title '$DATA4' with linespoints lt 2 |
---|
28 | FIN |
---|
29 | } |
---|
30 | |
---|
31 | X=1 |
---|
32 | Y=2 |
---|
33 | ### |
---|
34 | TYPE='Query Time' |
---|
35 | TITLE='Various Query Time' |
---|
36 | DATA=${SET}_query |
---|
37 | DATA1=${SET}_mgood |
---|
38 | DATA2=${SET}_good1 |
---|
39 | DATA3=${SET}_mbad |
---|
40 | DATA4=${SET}_bad1 |
---|
41 | TIME='microsec' |
---|
42 | make_script |
---|
43 | gnuplot $DATA.p |
---|
44 | |
---|
Note: See
TracBrowser
for help on using the repository browser.