]> rtime.felk.cvut.cz Git - hubacji1/iamcar2.git/commitdiff
Update plot psp script
authorJiri Vlasak <hubacji1@fel.cvut.cz>
Wed, 8 Jul 2020 13:05:10 +0000 (15:05 +0200)
committerJiri Vlasak <hubacji1@fel.cvut.cz>
Wed, 8 Jul 2020 13:05:10 +0000 (15:05 +0200)
scripts/plot_psp.py

index 649b9e19b360fa874ce587160898d77eb2bd01b5..47308c9020f016d968af76abdf0d00c88c6ab144 100644 (file)
@@ -2,8 +2,9 @@
 import matplotlib.pyplot as plt
 
 def plot_graph():
-    plt.rcParams["font.size"] = 24
-    #plt.rcParams["font.family"] = "TeX Gyre Pagella"
+    plt.rcParams["font.size"] = 22
+    plt.rcParams["font.family"] = "sans-serif"
+    plt.rcParams["figure.figsize"] = [6, 4]
     f, ax = plt.subplots()
     ax.set_title(TITLE)
 
@@ -29,10 +30,10 @@ TITLE = "Number of direction changes"
 XLABEL = "Slot length minus car length [m]"
 YLABEL = "Number of changes [-]"
 LEGEND = [
-    "Reversed approach",
-    "Breadth-first search",
+    "Reversed",
+    "BFS",
 ]
-FILE = "/home/jiri/phd/pub/figs/psp_cusp.eps"
+FILE = "/home/jiri/phd/j1/figs/psp_cusp.eps"
 GRID = True
 YLOG = False
 
@@ -83,12 +84,12 @@ TITLE = "Elapsed time of search"
 XLABEL = "Slot length minus car length [m]"
 YLABEL = "Elapsed time [s]"
 LEGEND = [
-    "Reversed approach",
-    "Breadth-first search",
+    "Reversed",
+    "BFS",
 ]
-FILE = "/home/jiri/phd/pub/figs/psp_log_time.eps"
+FILE = "/home/jiri/phd/j1/figs/psp_time.eps"
 GRID = False
-YLOG = True
+YLOG = False
 
 PLOT = []
 PLOT.append([