source: examples/scaling_tests/plotting/gen_big @ c6d5da3

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
RevLine 
[08b8da7]1#!/bin/sh
2
3SET=$1
4filename=${SET}_orig
5if [ ! -e $filename ] ; then
6    exit
7fi
8
9## generate the plot script
10make_script() {
11cat <<FIN > $DATA.p
12set title "$TITLE"
13set terminal jpeg medium size 640,480
14set output "$DATA.jpeg"
15set   autoscale   
16unset log
17unset label                           
18set xtic auto                         
19set ytic auto                         
20set xlabel "Number of Credentials"
21set ylabel "$TYPE time ($TIME)"
22set xr [0:*]
23set yr [0:*]
24plot '$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
28FIN
29}
30
31X=1
32Y=2
33###
34TYPE='Query Time'
35TITLE='Various Query Time'
36DATA=${SET}_query
37DATA1=${SET}_mgood
38DATA2=${SET}_good1
39DATA3=${SET}_mbad
40DATA4=${SET}_bad1
41TIME='microsec'
42make_script
43gnuplot $DATA.p
44
Note: See TracBrowser for help on using the repository browser.