From e52a2a3b93a8d691df4b6fada4b94e07a05cc480 Mon Sep 17 00:00:00 2001 From: Tamas Gal <tgal@km3net.de> Date: Thu, 28 Feb 2019 19:10:33 +0400 Subject: [PATCH] Fix fontsizes --- scripts/online_reco.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/online_reco.py b/scripts/online_reco.py index 65c7c13..7d4ed79 100644 --- a/scripts/online_reco.py +++ b/scripts/online_reco.py @@ -54,14 +54,16 @@ class ZenithDistribution(kp.Module): def create_plot(self): n = len(self.thetas) n_ok = n - np.count_nonzero(np.isnan(self.thetas)) + fontsize = 16 - fig, ax = plt.subplots(figsize=(16, 10)) + fig, ax = plt.subplots(figsize=(16, 8)) ax.hist(self.thetas, bins=180) ax.set_title( r"$\theta$ distribution of JGandalf track reconstructions" "\nbased on %d reconstructed tracks out of %d events" % (n_ok, n)) - ax.set_xlabel(r"$\theta$ [deg]") - ax.set_ylabel = "count" + ax.set_xlabel(r"$\theta$ [deg]", fontsize=fontsize) + ax.set_ylabel("count", fontsize=fontsize) + ax.tick_params(labelsize=fontsize) filename = os.path.join(self.plots_path, 'track_reco.png') plt.savefig(filename, dpi=120, bbox_inches="tight") plt.close('all') -- GitLab