Skip to content

Commit

Permalink
Fix plotting with 1 channel
Browse files Browse the repository at this point in the history
  • Loading branch information
F33RNI committed Dec 17, 2022
1 parent 9bc7f6e commit f85a387
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GraphPlot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit f85a387

Please sign in to comment.