From e1a766b94db5a9899264bf4a4b05cfcb5085f3a3 Mon Sep 17 00:00:00 2001 From: Jiri Vlasak Date: Mon, 7 Jan 2019 13:38:36 +0100 Subject: [PATCH] Update font size, figure title --- gplot.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/gplot.py b/gplot.py index 99d782b..69c1e90 100644 --- 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() -- 2.39.2