From c6a55d2a1797df3e8ecf61a73e57697aaddcc93d Mon Sep 17 00:00:00 2001
From: Tamas Gal <tgal@km3net.de>
Date: Wed, 17 Oct 2018 15:08:31 +0200
Subject: [PATCH] Show det id in plots

---
 scripts/pmt_hrv.py   | 4 ++--
 scripts/pmt_rates.py | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/scripts/pmt_hrv.py b/scripts/pmt_hrv.py
index 4cc3f60..a523b54 100755
--- a/scripts/pmt_hrv.py
+++ b/scripts/pmt_hrv.py
@@ -105,9 +105,9 @@ class PMTRates(kp.Module):
         m = self.hrv_matrix
         fig, ax = plt.subplots(figsize=(10, 8))
         ax.imshow(m, origin='lower', interpolation='none')
-        ax.set_title("HRV Ratios (Monitoring Channel) for DU-{}\n"
+        ax.set_title("HRV Ratios (Monitoring Channel) for DetID-{} DU-{}\n"
                      "PMTs ordered from top to bottom - {}"
-                     .format(self.du, datetime.utcnow()))
+                     .format(self.det_id, self.du, datetime.utcnow()))
         ax.set_xlabel("UTC time [{}s/px]".format(interval))
         plt.yticks([i*31 for i in range(18)],
                    ["Floor {}".format(f) for f in range(1, 19)])
diff --git a/scripts/pmt_rates.py b/scripts/pmt_rates.py
index 0a556d8..992ae66 100755
--- a/scripts/pmt_rates.py
+++ b/scripts/pmt_rates.py
@@ -107,10 +107,10 @@ class PMTRates(kp.Module):
         m[m < 5000] = 5000
         fig, ax = plt.subplots(figsize=(10, 8))
         ax.imshow(m, origin='lower', interpolation='none')
-        ax.set_title("Mean PMT Rates (Monitoring Channel) for DU-{} "
+        ax.set_title("Mean PMT Rates (Monitoring Channel) for DetID-{} DU-{} "
                      "- colours from 5kHz to 15kHz\n"
                      "PMTs ordered from top to bottom - {}"
-                     .format(self.du, datetime.utcnow()))
+                     .format(self.det_id, self.du, datetime.utcnow()))
         ax.set_xlabel("UTC time [{}s/px]".format(interval))
         plt.yticks([i*31 for i in range(18)],
                    ["Floor {}".format(f) for f in range(1, 19)])
-- 
GitLab