def _infer_xy_labels(darray, x, y):

    if x is None and y is None:
        if darray.ndim != 2:
            raise ValueError('DataArray must be 2d')
        y, x = darray.dims
    elif x is None or y is None:
        raise ValueError('cannot supply only one of x and y')
    elif any(k not in darray.coords for k in (x, y)):
        raise ValueError('x and y must be coordinate variables')
    return x, y
Handler for the GET requests.
dataset/ETHPy150Open pydata/xarray/xarray/plot/utils.py/_infer_xy_labels--crossover with--dataset/ETHPy150Open dddomodossola/remi/remi/server.py/App.do_GET