On Window function - Wikipedia tapering functions are plotted using two different styles. One shows curve (samples) and the other Fourier transform (bins). I've prepared two tapering functions based on Tanh() -functions. def tanh_taper(N, x, c): if x < 0: v = 0.0 if 0 <= x <= N/2: v = math.tanh(c * x) elif N/2 < x < N: v = math.tanh(-c * x + N * c) else: v = 0.0 return v def tanh_taper_inverted(N, x, c): if x < 0: v = 1.0 elif 0 <= x <= N/2: v = math.tanh(-c * x) + 1.0 elif N/2 < n < N: v = math.tanh(c * x - N * c) + 1.0 else: v = 1.0 return v How do I get the Fourier transform -type plot (using Python)? Continue reading...