Statistics
| Branch: | Revision:

root / fiddle / simulation_analysis / plot.sh @ e066fa74

History | View | Annotate | Download (1.35 KB)

1
INPUTDIR=output
2

    
3
# The line chart that shows the running time for one type of graph when changing the number of nodes
4
for file in `ls output | grep plotdata`;
5
do
6
    filename=${file%.*}
7
    python plot_experiment_result.py -i $INPUTDIR/$file -o output/$filename\_BC\_HBC.png -c line -d s;
8
    python plot_experiment_result.py -i $INPUTDIR/$file -o output/$filename\_speedup\_ratio.png -c speedup -d s
9
done
10

    
11
# Plot special case for artificial graphs that were run on the router
12
file=CN_synthetic_router
13
python plot_experiment_result.py -i $INPUTDIR/$file.out3 -o output/$file\_BC\_HBC.png -c line -d r;
14
python plot_experiment_result.py -i output/$file.out3 -o output/$file\_speedup\_ratio.png -c speedup -d r
15

    
16
# Plot the comparison between 3 real Community Networks
17
# This one will plot the bar chart, showing the running time for each CN: FFG, FF_Wien, Ninux
18
file=CN_real_router
19
python plot_experiment_result.py -i $INPUTDIR/$file.out3 -o output/$file\_BC\_HBC.png -c bar -d r;
20
python plot_experiment_result.py -i $INPUTDIR/$file.out3 -o output/$file\_speedup\_ratio.png -c speedup -d r
21

    
22
file=CN_real_server
23
python plot_experiment_result.py -i $INPUTDIR/$file.out3 -o output/$file\_BC\_HBC.png -c bar -d s;
24
python plot_experiment_result.py -i $INPUTDIR/$file.out3 -o output/$file\_speedup\_ratio.png -c speedup -d s
25

    
26
cp $INPUTDIR/*.png /home/quynh/Thesis/quynhnguyen-ms/thesis/images