From: Paul Brossier Date: Mon, 30 Jul 2012 18:10:58 +0000 (-0600) Subject: interfaces/python/demo_spectrogram.py: hide noise X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=be65de4e86928213202e9311451f9205163921b4;p=aubio.git interfaces/python/demo_spectrogram.py: hide noise --- diff --git a/interfaces/python/demo_spectrogram.py b/interfaces/python/demo_spectrogram.py index 2801ee0b..e544ac3a 100755 --- a/interfaces/python/demo_spectrogram.py +++ b/interfaces/python/demo_spectrogram.py @@ -22,7 +22,7 @@ def get_spectrogram(filename): if read < a.hop_size: break # plotting - imshow(log10(specgram.T), origin = 'bottom', aspect = 'auto', cmap=cm.gray_r) + imshow(log10(specgram.T + .001), origin = 'bottom', aspect = 'auto', cmap=cm.gray_r) axis([0, len(specgram), 0, len(specgram[0])]) ylabel('Frequency (Hz)') xlabel('Time (s)')