From: Paul Brossier Date: Sun, 15 Jul 2012 22:43:28 +0000 (-0600) Subject: interfaces/python/demo_filterbank_*: capitalize titles X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3cd243456ba97dae6fe6162eb6a6872e250b0d8c;p=aubio.git interfaces/python/demo_filterbank_*: capitalize titles --- diff --git a/interfaces/python/demo_filterbank_slaney.py b/interfaces/python/demo_filterbank_slaney.py index 6ed7fd58..2c8fe762 100755 --- a/interfaces/python/demo_filterbank_slaney.py +++ b/interfaces/python/demo_filterbank_slaney.py @@ -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() diff --git a/interfaces/python/demo_filterbank_triangle_bands.py b/interfaces/python/demo_filterbank_triangle_bands.py index 2e109962..7e4b3f76 100755 --- a/interfaces/python/demo_filterbank_triangle_bands.py +++ b/interfaces/python/demo_filterbank_triangle_bands.py @@ -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()