diff --git a/scripts/online_reco.py b/scripts/online_reco.py
index 27ea9639a3da62e694a35dc604717445ca9a5d0d..8fe550dd6550a6aebeacf6cbc637b2889e5008c0 100644
--- a/scripts/online_reco.py
+++ b/scripts/online_reco.py
@@ -57,9 +57,8 @@ class ZenithDistribution(kp.Module):
 
         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"based on %d of %d reconstructed events" % (n_ok, n))
+        ax.set_title(r"$\theta$ distribution of JGandalf track reconstructions"
+                     "\nbased 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')