]> rtime.felk.cvut.cz Git - hubacji1/iamcar2.git/commitdiff
Change plot scripts for current tests
authorJiri Vlasak <hubacji1@fel.cvut.cz>
Wed, 12 Feb 2020 13:11:28 +0000 (14:11 +0100)
committerJiri Vlasak <hubacji1@fel.cvut.cz>
Wed, 12 Feb 2020 13:11:28 +0000 (14:11 +0100)
This is messy commit. I decided to record these changes because I am
starting to implement plot scripts in Python anyway.

scripts/plot_statistics_cusps-in-path.pl
scripts/plot_statistics_error.pl
scripts/plot_statistics_time.pl

index 10057e93ac1b720e527e3e0b6f820a0696151ff5..82492a7a7710338dd008c9b2d8733b80ec732ca8 100644 (file)
@@ -2,12 +2,18 @@
 #
 #       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 21:xticlabels(lx) w histeps lc rgb '#ff0000' t 'Avg cusps-in-path [-]'
-replot 'stats' u 22:xticlabels(lx) w histeps lc rgb '#ffaaaa' t 'Stddev cusps-in-path [-]'
-replot 'stats' u 23:xticlabels(lx) w histeps lc rgb '#0000ff' t 'Median cusps-in-path [-]'
-replot 'stats' u 24:xticlabels(lx) w histeps lc rgb '#aaaaff' t 'Max cusps-in-path [-]'
-replot 'stats' u 25:xticlabels(lx) w histeps lc rgb '#aaaaff' t 'Min cusps-in-path [-]'
+  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
index 5974f7d1673f91b5bbc88353714b1903c42b225f..aee3d5858dce3f3d9ff4622bc6cf7a5ae5d6da2b 100644 (file)
@@ -4,13 +4,16 @@ 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 style data lines
 #set logscale y
-#set yrange [0.1:500]
-  plot 'stats_1' u ($0 - 0.15):1 lc rgb '#0000ff' t '1', \
-       'stats_2' u 0:1:xticlabels(3) lc rgb '#00ff00' t '2', \
-       'stats_3' u ($0 + 0.15):1 lc rgb '#ff0000' t '3'
+set yrange [-1:101]
+set xtics rotate by -45
+set key off
+set xrange [0:60]
+  plot 'stats_1' u (1*$0 - 0.15):1 lc rgb '#0000ff' t '3D kd RS-RS', \
+       'stats_2' u (1*$0):1:xticlabels(3) lc rgb '#00ff00' t '3D kd RS-heur', \
+       'stats_3' u (1*$0 + 0.15):1 lc rgb '#ff00ff' t '3D grid RS-RS', \
+       'stats_4' u (1*$0 + 0.3):1 lc rgb '#ff0000' t '3D grid RS-heur'
 
 set terminal postscript eps size 3.5,2.62 enhanced color font 'Courrier,20' linewidth 2
 set output 'out.eps'
index d398faff64d0e05624a61cd5583d05965704fb37..67097b99b3a5fcac2ef85cc577bc037f6a8ca0cf 100644 (file)
@@ -6,11 +6,12 @@ set title "Elapsed time"
 set xlabel "Scenario [-]"
 set ylabel "Time [s]"
 set yrange [-1:14]
-set xrange [0:8]
+set xrange [0:57]
 set key left
 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 ("1_0" 1, "1_1" 2, "2_0" 3, "2_1" 4, "2_2" 5, "2_3" 6, "2_4" 7, "3_0" 8, "3_1" 9, "3_2" 10, "3_3" 11, "3_4" 12, "4_0" 13, "4_10" 14, "4_11" 15, "4_12" 16, "4_13" 17, "4_14" 18, "4_15" 19, "4_16" 20, "4_17" 21, "4_18" 22, "4_1" 23, "4_2" 24, "4_3" 25, "4_4" 26, "4_5" 27, "4_6" 28, "4_7" 29, "4_8" 30, "4_9" 31, "5_0" 32, "5_1" 33, "5_2" 34, "5_3" 35, "5_4" 36, "6_0" 37, "6_1" 38, "6_2" 39, "6_3" 40, "6_4" 41, "6_5" 42, "6_6" 43, "6_7" 44, "6_8" 45, "6_9" 46, "7_0" 47, "7_1" 48, "7_2" 49, "7_3" 50, "7_4" 51, "7_5" 52, "7_6" 53, "7_7" 54, "7_8" 55, "7_9" 56)
+
 set xtics nomirror
 plot 'data_time' u (1):1 notitle lc rgb '#0000ff', \
         '' u (2):2 notitle lc rgb '#0000ff', \
@@ -18,7 +19,56 @@ plot 'data_time' u (1):1 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'
+        '' u (7):7 notitle lc rgb '#0000ff', \
+        '' u (8):8 notitle lc rgb '#0000ff', \
+        '' u (9):9 notitle lc rgb '#0000ff', \
+        '' u (10):10 notitle lc rgb '#0000ff', \
+        '' u (11):11 notitle lc rgb '#0000ff', \
+        '' u (12):12 notitle lc rgb '#0000ff', \
+        '' u (13):13 notitle lc rgb '#0000ff', \
+        '' u (14):14 notitle lc rgb '#0000ff', \
+        '' u (15):15 notitle lc rgb '#0000ff', \
+        '' u (16):16 notitle lc rgb '#0000ff', \
+        '' u (17):17 notitle lc rgb '#0000ff', \
+        '' u (18):18 notitle lc rgb '#0000ff', \
+        '' u (19):19 notitle lc rgb '#0000ff', \
+        '' u (20):20 notitle lc rgb '#0000ff', \
+        '' u (21):21 notitle lc rgb '#0000ff', \
+        '' u (22):22 notitle lc rgb '#0000ff', \
+        '' u (23):23 notitle lc rgb '#0000ff', \
+        '' u (24):24 notitle lc rgb '#0000ff', \
+        '' u (25):25 notitle lc rgb '#0000ff', \
+        '' u (26):26 notitle lc rgb '#0000ff', \
+        '' u (27):27 notitle lc rgb '#0000ff', \
+        '' u (28):28 notitle lc rgb '#0000ff', \
+        '' u (29):29 notitle lc rgb '#0000ff', \
+        '' u (30):30 notitle lc rgb '#0000ff', \
+        '' u (31):31 notitle lc rgb '#0000ff', \
+        '' u (32):32 notitle lc rgb '#0000ff', \
+        '' u (33):33 notitle lc rgb '#0000ff', \
+        '' u (34):34 notitle lc rgb '#0000ff', \
+        '' u (35):35 notitle lc rgb '#0000ff', \
+        '' u (36):36 notitle lc rgb '#0000ff', \
+        '' u (37):37 notitle lc rgb '#0000ff', \
+        '' u (38):38 notitle lc rgb '#0000ff', \
+        '' u (39):39 notitle lc rgb '#0000ff', \
+        '' u (40):40 notitle lc rgb '#0000ff', \
+        '' u (41):41 notitle lc rgb '#0000ff', \
+        '' u (42):42 notitle lc rgb '#0000ff', \
+        '' u (43):43 notitle lc rgb '#0000ff', \
+        '' u (44):44 notitle lc rgb '#0000ff', \
+        '' u (45):45 notitle lc rgb '#0000ff', \
+        '' u (46):46 notitle lc rgb '#0000ff', \
+        '' u (47):47 notitle lc rgb '#0000ff', \
+        '' u (48):48 notitle lc rgb '#0000ff', \
+        '' u (49):49 notitle lc rgb '#0000ff', \
+        '' u (50):50 notitle lc rgb '#0000ff', \
+        '' u (51):51 notitle lc rgb '#0000ff', \
+        '' u (52):52 notitle lc rgb '#0000ff', \
+        '' u (53):53 notitle lc rgb '#0000ff', \
+        '' u (54):54 notitle lc rgb '#0000ff', \
+        '' u (55):55 notitle lc rgb '#0000ff', \
+        '' u (56):56 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