From bbda05bb13706176355a2edff7216cb67394b6c9 Mon Sep 17 00:00:00 2001 From: xcorr team <xcorrteam@xcorr-testing.ethz.ch> Date: Fri, 1 Sep 2017 12:16:41 +0000 Subject: [PATCH] bug fix plotting.py: minMag/maxMag when no events --- TM/plotting.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/TM/plotting.py b/TM/plotting.py index f6ae105..ea5356d 100644 --- a/TM/plotting.py +++ b/TM/plotting.py @@ -586,6 +586,10 @@ def plot_timeline(infile, threshold=None, numTemplates=0, colorBy='templateNumbe # Give some margin minMag = math.floor(minMag * 10) / 10 - 0.2 maxMag = math.ceil(maxMag * 10) / 10 + 0.3 + else: + minMag = 0. + maxMag = 0. + # 2. For histogram # 2.1. Maximum rates -- GitLab