pyFDN.plot_impulse_response_matrix#

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

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

Parameters:
  • t (ArrayLike | None) – x-values (e.g. time). If None, uses 0 .. size(ir,2)-1.

  • ir (ArrayLike) – Shape (n_samples, n_out, n_in). Each subplot is ir[:, out, in].

  • 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.

  • fig (Figure | None) – Figure to use.

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

Return type:

tuple[Figure, ndarray, ndarray]

Returns:

  • fig (Figure)

  • plot_axes (ndarray of Axes) – Shape (n_out, n_in).

  • plot_handles (ndarray of Line2D) – Shape (n_out, n_in).