Skip to content

Commit

Permalink
now, we either show or return_fig, not both
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Azevedo authored and tompollard committed Jun 11, 2019
1 parent ed192ed commit 7be3a57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wfdb/plot/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,11 @@ def plot_items(signal=None, ann_samp=None, ann_sym=None, fs=None,
label_figure(axes, n_subplots, time_units, sig_name, sig_units, ylabel,
title)

plt.show()

if return_fig:
return fig

plt.show()

def get_plot_dims(signal, ann_samp):
"Figure out the number of plot channels"
if signal is not None:
Expand Down

0 comments on commit 7be3a57

Please sign in to comment.