interfaces/python/demo_spectrogram.py: hide noise
authorPaul Brossier <piem@piem.org>
Mon, 30 Jul 2012 18:10:58 +0000 (12:10 -0600)
committerPaul Brossier <piem@piem.org>
Mon, 30 Jul 2012 18:10:58 +0000 (12:10 -0600)
interfaces/python/demo_spectrogram.py

index 2801ee0bd18afb43e2c8c96f24bf2db2bec7d1b2..e544ac3a37cefaba2cee2d0ed5819af1662c44e5 100755 (executable)
@@ -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)')