]> rtime.felk.cvut.cz Git - hubacji1/iamcar2.git/commitdiff
Update cost plot
authorJiri Vlasak <hubacji1@fel.cvut.cz>
Thu, 30 Jan 2020 07:56:35 +0000 (08:56 +0100)
committerJiri Vlasak <hubacji1@fel.cvut.cz>
Tue, 4 Feb 2020 17:10:01 +0000 (18:10 +0100)
scripts/plot_statistics_cost.pl

index 15145e378fe8d18d90945fc465e9a41d8d30f155..136ba2a7ded6bb8d5996a6ed7c61fa2c84db1036 100644 (file)
@@ -2,17 +2,23 @@
 #
 #       gnuplot -e "lx=2" plot_statistics_cost.pl
 #
-set title "Average final path cost (0.1 m grid)"
+set title "Final path cost"
 set xlabel "Scenario [-]"
 set ylabel "Cost [m]"
-set yrange [0:200]
+set yrange [-10:200]
+set xrange [0:8]
 set key left
-set offset 0.5, 0.5, 0, 0
-set bars 1
-if (!exists('lx')) lx=3
-  plot 'stats_test11' u ($0 - 0.1):16:17 w yerrorbars ls 1 lc rgb '#0000ff' t 'Heuristics', \
-       'stats_test12' u 0:16:17:xticlabels(lx) w yerrorbars ls 1 lc rgb '#00ff00' t 'Reeds \& Shepp', \
-       'stats_test8' u ($0 + 0.1):16:17 w yerrorbars ls 1 lc rgb '#ff0000' t 'Euclidean'
+set grid
+set style data boxplot
+set xtics ("1_0" 1, "1_1" 2, "2_0" 3, "2_1" 4, "2_2" 5, "2_3" 6, "2_4" 7)
+set xtics nomirror
+plot 'data_cost' u (1):1 notitle lc rgb '#0000ff', \
+        '' u (2):2 notitle lc rgb '#0000ff', \
+        '' u (3):3 notitle lc rgb '#0000ff', \
+        '' u (4):4 notitle lc rgb '#0000ff', \
+        '' u (5):5 notitle lc rgb '#0000ff', \
+        '' u (6):6 notitle lc rgb '#0000ff', \
+        '' u (7):7 lc rgb '#0000ff' t '1'
 set terminal postscript eps size 3.5,2.62 enhanced color font 'Courrier,20' linewidth 2
 set output 'out.eps'
 replot