scqubits.utils.plotting.matrix

scqubits.utils.plotting.matrix(data_matrix, mode='abs', show_numbers=False, **kwargs)[source]

Create a “skyscraper” plot and a 2d color-coded plot of a matrix.

Parameters:
  • data_matrix (ndarray) – 2d matrix data

  • mode (str) – choice from constants.MODE_FUNC_DICT for processing function to be applied to data

  • show_numbers (bool) – determines whether matrix element values are printed on top of the plot (default: False)

  • **kwargs – standard plotting option (see separate documentation)

Return type:

Tuple[Figure, Tuple[Axes, Axes]]

Returns:

figure and axes objects for further editing