pyFDN.plot_impulse_response#
- pyFDN.plot_impulse_response(*irs, fs=None, labels=None, mulaw=True, mu=255.0, title='Impulse response', max_points=10000)[source]#
Plot one or more impulse responses over time, mu-law compressed by default.
Mu-law companding (
pyFDN.mulaw_encode()) keeps the quiet late part of a reverberant decay visible alongside the early reflections. Dense traces are downsampled with LTTB (downsampled_scatter()) before plotting.- Parameters:
*irs (array-like) – One or more 1-D impulse responses, plotted as overlaid lines.
fs (float, optional) – Sample rate in Hz. If given, the time axis is in seconds; otherwise in samples.
labels (sequence of str, optional) – One legend label per impulse response.
mulaw (bool, optional) – Apply mu-law companding to the amplitudes. Default True.
mu (float, optional) – Mu-law compression parameter. Default 255 (G.711).
title (str, optional) – Figure title.
max_points (int, optional) – Maximum number of points per trace after downsampling. Default 10000.
- Returns:
Call
.show()to display.- Return type:
go.Figure