# To run with folder name (aka planner) at x axis, use:
#
#       gnuplot -e "lx=2" plot_statistics_cusps-in-path.pl
#
set title "Cusps in path"
set style data boxes
set boxwidth 0.1
set offset 0.5, 0.5, 0, 0
set xtics rotate by -45
set grid
if (!exists('lx')) lx=3
  plot 'stats' u 0:21:xticlabels(lx) lc rgb '#ff0000' t 'Avg [-]'
replot 'stats' u ($0 - 0):22 lc rgb '#ffaaaa' t 'Stddev [-]'
replot 'stats' u ($0 - 0.15):23 lc rgb '#0000ff' t 'Median [-]'
replot 'stats' u ($0 - 0.3):24 lc rgb '#aaaaff' t 'Max [-]'
replot 'stats' u ($0 - 0.3):25 lc rgb '#aaaaff' t 'Min [-]'
set terminal postscript eps size 3.5,2.62 enhanced color font 'Courrier,20' linewidth 2
set output 'out.eps'
replot
