]> rtime.felk.cvut.cz Git - hubacji1/iamcar2.git/commitdiff
Add auxiliary plot statistics scripts
authorJiri Vlasak <hubacji1@fel.cvut.cz>
Wed, 12 Feb 2020 13:10:54 +0000 (14:10 +0100)
committerJiri Vlasak <hubacji1@fel.cvut.cz>
Wed, 12 Feb 2020 13:10:55 +0000 (14:10 +0100)
scripts/plot_statistics_1_error.pl [new file with mode: 0644]
scripts/plot_statistics_1_time.pl [new file with mode: 0644]

diff --git a/scripts/plot_statistics_1_error.pl b/scripts/plot_statistics_1_error.pl
new file mode 100644 (file)
index 0000000..f71a078
--- /dev/null
@@ -0,0 +1,16 @@
+set title "Not finished scenarios"
+set xlabel "Planner [-]"
+set ylabel "Failed runs [%]"
+set key left
+set offset 0.5, 0.5, 0, 0
+set grid
+set style data boxes
+set boxwidth 0.1
+#set logscale y
+#set yrange [0.1:500]
+set xtics rotate by -45
+  plot 'stats' u 1:xticlabels(3) lc rgb '#0000ff' t ''
+
+set terminal postscript eps size 3.5,2.62 enhanced color font 'Courrier,20' linewidth 2
+set output 'out.eps'
+replot
diff --git a/scripts/plot_statistics_1_time.pl b/scripts/plot_statistics_1_time.pl
new file mode 100644 (file)
index 0000000..37ea911
--- /dev/null
@@ -0,0 +1,19 @@
+# To run with folder name (aka planner) at x axis, use:
+#
+#       gnuplot -e "lx=2" plot_statistics_time.pl
+#
+set title "Elapsed time"
+set xlabel "Planner [-]"
+set ylabel "Time [s]"
+set yrange [-1:14]
+set key left
+set offset 0.5, 0.5, 0, 0
+set bars 1
+set xtics rotate by -45
+set grid
+
+if (!exists('lx')) lx=3
+  plot 'stats' u 0:6:7:xticlabels(lx) w yerrorbars ls 1 lc rgb '#0000ff' t ''
+set terminal postscript eps size 3.5,2.62 enhanced color font 'Courrier,20' linewidth 2
+set output 'out.eps'
+replot