Sept. 22, 2013
9:22 p.m.
Hi: The documentation of signal.freqz [1] has an example that plots the frequency response of a filter. The y axis is plotted in a logaritmic scale and labeled as "decibels": plt.semilogy(w, np.abs(h), 'b') plt.ylabel('Amplitude (dB)', color='b') I think that to be in dB, the plot should be in a linear scale and the magnitude of the response computed as 20*np.log10(np.abs(h)): plt.plot(w, 20*np.log10(np.abs(h)), 'b') plt.ylabel('Amplitude (dB)', color='b') Any comments? Alejandro [1] http://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.freqz.html