scqubits.utils.plotting.matrix2d¶
- scqubits.utils.plotting.matrix2d(matrix, mode='abs', show_numbers=True, show_colorbar=True, **kwargs)[source]¶
Display a matrix as a color-coded 2d plot, optionally printing the numerical values of the matrix elements.
- Parameters:
matrix (
ndarray
) – 2d matrix datamode (
str
) – choice from constants.MODE_FUNC_DICT for processing function to be applied to datashow_numbers (
bool
) – determines whether matrix element values are printed on top of the plot (default: True)show_colorbar (
bool
) – switch whether to draw a color legend (default: True)**kwargs – standard plotting option (see separate documentation)
- Return type:
Tuple
[Figure
,Axes
]- Returns:
figure and axes objects for further editing