From 152b277e6d54b1cf2da009643f38fcf669f3cb5c Mon Sep 17 00:00:00 2001 From: Tamas Gal <tgal@km3net.de> Date: Fri, 8 Mar 2019 17:29:53 +0100 Subject: [PATCH] Add legend" --- scripts/online_reco.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/online_reco.py b/scripts/online_reco.py index adf97d0..4e91004 100644 --- a/scripts/online_reco.py +++ b/scripts/online_reco.py @@ -80,6 +80,7 @@ class ZenithDistribution(kp.Module): ax.set_ylabel("count", fontsize=fontsize) ax.tick_params(labelsize=fontsize) ax.set_yscale("log") + plt.legend(fontsize=fontsize) filename = os.path.join(self.plots_path, 'track_reco.png') plt.savefig(filename, dpi=120, bbox_inches="tight") plt.close('all') -- GitLab