Skip to content

Commit 8269d41

Browse files
authored
Merge pull request #272 from MIT-LCP/bg-branch
Fix for MIT-LCP/wfdb-python issue #269. The number of subplots (n_sub…
2 parents 323a0f0 + dcedbc4 commit 8269d41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wfdb/plot/plot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,9 @@ def plot_items(signal=None, ann_samp=None, ann_sym=None, fs=None,
128128
'signal: {} values'.format(signal.shape[1]))
129129

130130
if ylabel:
131-
if len(ylabel) != signal.shape[1]:
131+
if len(ylabel) != n_subplots:
132132
raise Exception('The length of the ylabel must be the same as the '
133-
'signal: {} values'.format(signal.shape[1]))
133+
'signal: {} values'.format(n_subplots))
134134

135135
label_figure(axes, n_subplots, time_units, sig_name, sig_units,
136136
xlabel, ylabel, title)

0 commit comments

Comments
 (0)