interfaces/python/demo_filterbank_*: capitalize titles
authorPaul Brossier <piem@piem.org>
Sun, 15 Jul 2012 22:43:28 +0000 (16:43 -0600)
committerPaul Brossier <piem@piem.org>
Sun, 15 Jul 2012 22:43:28 +0000 (16:43 -0600)
interfaces/python/demo_filterbank_slaney.py
interfaces/python/demo_filterbank_triangle_bands.py

index 6ed7fd58483feb3e94c061a8fcc6598b211c0028..2c8fe762e23d4abbb5665ca2240118823df44bd1 100755 (executable)
@@ -11,13 +11,11 @@ f.set_mel_coeffs_slaney(samplerate)
 
 from pylab import loglog, title, show, xlim, ylim, xlabel, ylabel
 xlim([0,samplerate / 2])
-print f.get_coeffs().shape
 times = vstack([arange(win_s / 2 + 1) * samplerate / win_s] * 40)
-print times.shape
 loglog(times.T, f.get_coeffs().T, '.-')
 title('Mel frequency bands coefficients')
 xlim([100, 7500])
 ylim([1.0e-3, 2.0e-2])
-xlabel('frequency (Hz)')
-ylabel('amplitude')
+xlabel('Frequency (Hz)')
+ylabel('Amplitude')
 show()
index 2e109962d23ab096bf13f7c0dc310f31be6d0cd7..7e4b3f767da65be40001774467e26ecd9032eca5 100755 (executable)
@@ -20,7 +20,7 @@ times = vstack([arange(win_s / 2 + 1) * samplerate / win_s] * n_filters)
 loglog(times.T, f.get_coeffs().T, '.-')
 xlim([50, samplerate/2])
 ylim([1.0e-6, 2.0e-2])
-ylabel('amplitude')
+ylabel('Amplitude')
 
 ## build a new filterbank
 
@@ -41,7 +41,7 @@ times = vstack([arange(win_s / 2 + 1) * samplerate / win_s] * n_filters)
 loglog(times.T, f.get_coeffs().T, '.-')
 xlim([50, samplerate/2])
 ylim([1.0e-6, 2.0e-2])
-xlabel('frequency (Hz)')
-ylabel('amplitude')
+xlabel('Frequency (Hz)')
+ylabel('Amplitude')
 
 show()