Document info command
[pazpar2-moved-to-github.git] / perf / bash / generate_plot.sh
1
2 if [ "$1" != "" ] ; then 
3     echo "set terminal $1" > range.gnuplot
4     echo "set terminal $1" > init.gnuplot
5     echo "set terminal $1" > search.gnuplot
6     echo "set terminal $1" > show.gnuplot
7 else 
8     echo "" > range.gnuplot
9     echo "" > init.gnuplot
10     echo "" > search.gnuplot
11     echo "" > show.gnuplot
12 fi
13
14 echo "plot 'range.stat' using 1:2 title 'init', 'range.stat'using 1:3 title 'search', 'range.stat'using 1:4 title 'show'" >> range.gnuplot
15 echo "plot 'init.stat' using 1:2 title 'init'" >> init.gnuplot
16 echo "plot 'search.stat' using 1:2 title 'Search'" >> search.gnuplot
17 echo "plot 'search.stat' using 1:2 title 'Show'" >> show.gnuplot
18
19 if [ "$1" != "" ] ; then 
20     gnuplot < range.gnuplot > range.$1
21     gnuplot < init.gnuplot > init.$1
22     gnuplot < search.gnuplot > search.$1
23     gnuplot < show.gnuplot > show.$1
24 else 
25     gnuplot < range.gnuplot 
26     gnuplot < init.gnuplot 
27     gnuplot < search.gnuplot
28     gnuplot < show.gnuplot
29 fi 
30
31 cat range.gnuplot init.gnuplot search.gnuplot show.gnuplot > all.gnuplot