]> rtime.felk.cvut.cz Git - hubacji1/iamcar2.git/blob - scripts/wao_plot.sh
Refactor title, axes labels in plot script
[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 tmpc=$(mktemp)
7 mv out.pdf $tmpc
8 s1=$D/$(echo $S | cut -d' ' -f1)/test${P}.json
9 s2=$D/$(echo $S | cut -d' ' -f2)/test${P}.json
10 python3 ../scripts/plot_json_objects_scenario.py $s1 $s2
11 tmps=$(mktemp)
12 mv out.pdf $tmps
13
14 pdfunite $tmpc $tmps out.pdf
15 rm $tmpc
16 rm $tmps