From: Jiri Vlasak Date: Mon, 7 Jan 2019 12:38:36 +0000 (+0100) Subject: Update font size, figure title X-Git-Tag: v0.4.0~7^2~1 X-Git-Url: https://rtime.felk.cvut.cz/gitweb/hubacji1/iamcar.git/commitdiff_plain/e1a766b94db5a9899264bf4a4b05cfcb5085f3a3 Update font size, figure title --- 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()