#
# 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