]> rtime.felk.cvut.cz Git - hubacji1/iamcar2.git/blob - scripts/wao_plot.sh
Remove unused extensions
[hubacji1/iamcar2.git] / scripts / wao_plot.sh
1 #!/bin/bash
2 P=$1
3 D=$2
4
5 #S=$(python3 ../scripts/plot.py costs $D 2>/dev/null)
6 S=$(../scripts/plot_cost.py $D test$P 2>/dev/null)
7 tmpc=$(mktemp)
8 mv out.pdf $tmpc
9 s1=$D/$(echo $S | cut -d' ' -f1)/test${P}.json
10 s2=$D/$(echo $S | cut -d' ' -f2)/test${P}.json
11 python3 ../scripts/plot_json_objects_scenario.py $s1 $s2
12 tmps=$(mktemp)
13 mv out.pdf $tmps
14
15 pdfunite $tmpc $tmps out.pdf
16 rm $tmpc
17 rm $tmps
18 echo "best/worst are $s1 $s2"