Skip to content

Commit 7be3a57

Browse files
Gabriel Azevedotompollard
authored andcommitted
now, we either show or return_fig, not both
1 parent ed192ed commit 7be3a57

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
@@ -117,11 +117,11 @@ def plot_items(signal=None, ann_samp=None, ann_sym=None, fs=None,
117117
label_figure(axes, n_subplots, time_units, sig_name, sig_units, ylabel,
118118
title)
119119

120-
plt.show()
121-
122120
if return_fig:
123121
return fig
124122

123+
plt.show()
124+
125125
def get_plot_dims(signal, ann_samp):
126126
"Figure out the number of plot channels"
127127
if signal is not None:

0 commit comments

Comments
 (0)