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 (
ArrayLike) – One or more 1-D impulse responses, plotted as overlaid lines.fs (
float|None) – Sample rate in Hz. If given, the time axis is in seconds; otherwise in samples.labels (
Sequence[str] |None) – One legend label per impulse response.mulaw (
bool) – Apply mu-law companding to the amplitudes. Default True.mu (
float) – Mu-law compression parameter. Default 255 (G.711).max_points (
int) – Maximum number of points per trace after downsampling. Default 10000.
- Returns:
Call
.show()to display.- Return type: