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 of array-like) – 2-D matrices to visualise, filled row by row across the grid.
titles (sequence of str, optional) – One subplot title per matrix (supports HTML/
<br>for line breaks).ncols (int, optional) – Number of columns in the grid. Default 2.
zmin (float, optional) – Shared color limits. If both None, uses (-1, 1).
zmax (float, optional) – Shared color limits. If both None, uses (-1, 1).
show_ticks (bool, optional) – If True, label axes with integer row/column indices. Default False.
title (str, optional) – Overall figure title.
height (int, optional) – Figure size in pixels. Defaults scale with the grid shape.
width (int, optional) – Figure size in pixels. Defaults scale with the grid shape.
- Returns:
Call
.show()to display.- Return type:
go.Figure