freq_scale = 'linear'
mag_scale = 'dB'
fscale = freq_scale.lower()
mscale = mag_scale.lower()
mscale = 'dB'
fig = plt.figure()
Hz = 3.141592653589793 / 12.0
freqs = list(line(samples, min_freq, max_freq, finish=True))
freqs_label = list(line(samples, min_freq / Hz, max_freq / Hz, finish=True))
data = filt.freq_response(freqs)
mag = {'dB': dB20}[mscale]
print(mag(data))
Extract numerical values from zfilter object in python in AudioLazy library