pyFDN.plot_impulse_response_matrix#

pyFDN.plot_impulse_response_matrix(ir, *, fs=None, xlabel=None, ylabel=None, title=None, xlim=None, ylim=None, **plot_kwargs)[source]#

Plot a matrix of impulse responses in a subplot grid (out x in).

Parameters:
  • ir (ArrayLike) – Shape (n_samples, n_out, n_in), the layout of pyFDN.dss_to_impz(); each subplot is ir[:, out, in]. An FIR matrix (n_out, n_in, taps) is fir.transpose(2, 0, 1).

  • fs (float | None) – Sample rate in Hz; the time axis is in seconds when given, else in samples, as in plot_impulse_response().

  • xlabel (str | None) – Shared axis labels and title.

  • ylabel (str | None) – Shared axis labels and title.

  • title (str | None) – Shared axis labels and title.

  • xlim (tuple[float, float] | None) – Shared axis limits. If None, computed from data.

  • ylim (tuple[float, float] | None) – Shared axis limits. If None, computed from data.

  • **plot_kwargs (Any) – Passed to ax.plot().

Returns:

Its axes are fig.axes, row by row.

Return type:

Figure