scqubits.utils.plotting.evals_vs_paramvals#

scqubits.utils.plotting.evals_vs_paramvals(specdata, which=-1, subtract_ground=False, label_list=None, **kwargs)[source]#

Generates a simple plot of a set of eigenvalues as a function of one parameter. The individual points correspond to the a provided array of parameter values.

Parameters:
  • specdata (SpectrumData) – object includes parameter name, values, and resulting eigenenergies

  • which (Union[int, Iterable[int]]) – number of desired eigenvalues (sorted from smallest to largest); default: -1, signals all eigenvalues or: list of specific eigenvalues to include

  • subtract_ground (bool) – whether to subtract the ground state energy

  • label_list (Optional[List[str]]) – list of labels associated with the individual curves to be plotted

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

Return type:

Tuple[Figure, Axes]

Returns:

matplotlib objects for further editing