scqubits.utils.plotting.contours#

scqubits.utils.plotting.contours(x_vals, y_vals, func, contour_vals=None, show_colorbar=True, **kwargs)[source]#

Contour plot of a 2d function func(x,y).

Parameters:
  • x_vals (Union[List[float], ndarray]) – x values for the x-y evaluation grid

  • y_vals (Union[List[float], ndarray]) – y values for the x-y evaluation grid

  • func (Callable) – function f(x,y) for which contours are to be plotted

  • contour_vals (Union[List[float], ndarray, None]) – contour values can be specified if so desired

  • show_colorbar (bool) –

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

Return type:

Tuple[Figure, Axes]

Returns:

matplotlib objects for further editing