Removed plt.show() from plot time domain signal.
MODIFY
nussl/audio_signal.py
nussl/audio_signal.py
@@ -181,8 +181,6 @@ class AudioSignal(object):
output_name_path += name
plt.savefig(output_name_path)
- plt.show()
-
def plot_spectrogram(self, file_name=None, ch=None):
# TODO: use self.stft_data if not None
# TODO: flatten to mono be default

MODIFY
tests/test_audio_signal.py
tests/test_audio_signal.py
@@ -205,7 +205,7 @@ class AudioSignalUnitTests(unittest.TestCase):
a = nussl.AudioSignal(audio_data_array = test_signal)
a.plot_time_domain()
- def test_plot_time_domain_sample_xaxis(self):
+ def test_plot_time_domain_sample_on_xaxis(self):
# Plotting a stereo signal with sample numbers on the x axis instead of time
a = nussl.AudioSignal(self.input_path3)
a.plot_time_domain(x_label_time=False)

Removed plt.show() from plot time domain signal.