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 gridy_vals (
Union[List[float],ndarray]) – y values for the x-y evaluation gridfunc (
Callable) – function f(x,y) for which contours are to be plottedcontour_vals (
Union[List[float],ndarray]) – contour values can be specified if so desiredshow_colorbar (
bool)**kwargs – standard plotting option (see separate documentation)
- Return type:
Tuple[Figure,Axes]- Returns:
matplotlib objects for further editing