]> rtime.felk.cvut.cz Git - hubacji1/iamcar.git/commitdiff
Update font size, figure title
authorJiri Vlasak <hubacji1@fel.cvut.cz>
Mon, 7 Jan 2019 12:38:36 +0000 (13:38 +0100)
committerJiri Vlasak <hubacji1@fel.cvut.cz>
Mon, 7 Jan 2019 12:38:38 +0000 (13:38 +0100)
gplot.py

index 99d782b29db35144eb2a3a552dfc2022acf01512..69c1e902c8d5715a0bccec603f16996098d55d79 100644 (file)
--- a/gplot.py
+++ b/gplot.py
@@ -128,7 +128,6 @@ def plot_costdist():
     for a in r.keys():
         v[a] = get_lasts_if_exist(r[a], "cost")
 
-    plt.rcParams["font.size"] = 24
     fig = plt.figure()
     ax = fig.add_subplot(111)
     ax.set_title("Path cost histogram")
@@ -160,13 +159,12 @@ def plot_maxtime():
     for a in r.keys():
         v[a] = get_lasts_if_exist(r[a], "secs")
 
-    plt.rcParams["font.size"] = 24
     fig = plt.figure()
     ax = fig.add_subplot(111)
-    ax.set_title("Path found time histogram")
+    ax.set_title("Histogram of time to find the path")
 
     ax.set_ylabel("Number of paths found [-]")
-    ax.set_xlabel("Algorithm elapsed time [s]")
+    ax.set_xlabel("Algorithm computation time [s]")
     ax.set_yscale("log")
 
     for a in LOG:
@@ -209,7 +207,10 @@ def print_successrate():
         print("{}: {}".format(a["f"], v[a["f"]]))
 
 if __name__ == "__main__":
+    plt.rcParams["font.size"] = 29
     r = {}
     for sf in [i["f"] for i in LOG]:
         r[sf] = load_trajectories("{}/{}".format(LOGF, sf))
+    print_successrate()
     plot_maxtime()
+    plot_costdist()