From f85a3870479f4d259cee8944e9fff44a43713d0c Mon Sep 17 00:00:00 2001 From: F33RNI Date: Sat, 17 Dec 2022 03:30:50 +0300 Subject: [PATCH] Fix plotting with 1 channel --- GraphPlot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GraphPlot.py b/GraphPlot.py index 15cde08..4199461 100644 --- a/GraphPlot.py +++ b/GraphPlot.py @@ -112,7 +112,7 @@ def plot_data(self, frequencies, levels, normalize: bool, :param normalize_ref: normalize reference data before applying it :return: """ - if levels is not None and len(levels) > 1: + if levels is not None and len(levels) > 0: # Coppy levels array levels_copy = levels.copy()