pyFDN.plot_matrix_grid#
- pyFDN.plot_matrix_grid(matrices, *, titles=None, ncols=2, zmin=None, zmax=None, show_ticks=False, title=None, height=None, width=None)[source]#
Plot several matrices as a grid of Plotly heatmaps sharing one color scale.
Each matrix is rendered like
plot_matrix()(RdBu, zero-centered, top-left origin, square cells). Use this to compare several matrices side by side, e.g. a feedback matrix against its nearest orthogonal approximations.- Parameters:
matrices (
Sequence[ArrayLike]) – 2-D matrices to visualise, filled row by row across the grid.titles (
Sequence[str] |None) – One subplot title per matrix (supports HTML/<br>for line breaks).ncols (
int) – Number of columns in the grid. Default 2.zmin (
float|None) – Shared color limits. If both None, uses (-1, 1).zmax (
float|None) – Shared color limits. If both None, uses (-1, 1).show_ticks (
bool) – If True, label axes with integer row/column indices. Default False.height (
int|None) – Figure size in pixels. Defaults scale with the grid shape.width (
int|None) – Figure size in pixels. Defaults scale with the grid shape.
- Returns:
Call
.show()to display.- Return type: