From 2ca51970e7163efa1b3f6265453e66047eb928c5 Mon Sep 17 00:00:00 2001 From: Tamas Gal <tgal@km3net.de> Date: Tue, 15 Jan 2019 14:11:01 +0100 Subject: [PATCH] Add run/det/overlays info to title --- scripts/ztplot.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/ztplot.py b/scripts/ztplot.py index 32c756c..ab8b6d0 100755 --- a/scripts/ztplot.py +++ b/scripts/ztplot.py @@ -139,9 +139,14 @@ class ZTPlot(Module): if idx >= len(axes) - n_cols: ax.set_xlabel('time [ns]', fontsize=fontsize) + print plt.suptitle( - "FrameIndex {0}, TriggerCounter {1}\n{2} UTC".format( - event_info.frame_index, event_info.trigger_counter, + "Det ID {0}, Run {1}, FrameIndex {2}, TriggerCounter {3}, " + "Overlays {4}\n" + "{5} UTC".format( + event_info.det_id[0], event_info.run_id[0], + event_info.frame_index[0], event_info.trigger_counter[0], + event_info.overlays[0], datetime.utcfromtimestamp(event_info.utc_seconds)), fontsize=fontsize, y=1.05) -- GitLab