lib5c.plotters.matrix module¶
Module for simple visualization of matrix data.
-
lib5c.plotters.matrix.
plot_matrix
(matrix, log=False, pseudocount=0, cmap=None, dpi=800, **kwargs)[source]¶ Simple plotter function to quickly visualize a matrix.
- Parameters
matrix (np.ndarray or scipy.sparse.spmatrix) – The matrix to visualize.
log (bool) – Pass True to log the matrix for visualization.
pseudocount (int) – Pseudocount to add before logging. Ignored if
log
is False.cmap (matplotlib colormap, optional) – The colormap to use for visualizing the matrix entries. Default is ‘viridis’ with nan’s shown in red.
kwargs (kwargs) – Typical plotter kwargs.
- Returns
The axis plotted on.
- Return type
pyplot axis