Skip to content
Snippets Groups Projects
Commit f07a84a0 authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Add title

parent 9d4d99d6
No related branches found
No related tags found
No related merge requests found
......@@ -52,11 +52,14 @@ class ZenithDistribution(kp.Module):
self.create_plot()
def create_plot(self):
fig, ax = plt.subplots(figsize=(4, 3))
n = len(self.thetas)
n_ok = n - np.count_nonzero(np.isnan(self.thetas))
fig, ax = plt.subplots(figsize=(16, 10))
ax.hist(self.thetas, bins=180)
ax.set_title(
r"$\theta$ distribution of JGandalf track reconstructions\n"
r"(from the last %s events)" % self.max_events)
r"based on %d of %d reconstructed events" % (n_ok, n))
ax.set_xlabel(r"$\theta$ [deg]")
ax.set_ylabel = "count"
filename = os.path.join(self.plots_path, 'track_reco.png')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment