def METHOD_NAME(
    self,
    grid,
    prop=None,
    mode="layer",
    minvalue=None,
    maxvalue=None,
    colormap=None,
    linecolor="black",
    index=1,
    window=None,
    activeonly=True,
):
    """Plot a row slice, column slice or layer slice of a grid.
    Args:
        grid (Grid): The XTGeo grid object
        prop (GridProperty, optional): The XTGeo grid property object
        mode (str): Choose between 'column', 'row', 'layer' (default)
        minvalue (float): Minimum level color scale (default: from data)
        maxvalue (float): Maximum level color scale (default: from data)
        index (int): Index to plot e.g layer number if layer slice (first=1)
        colormap: Color map to use for cells, e.g. 'rainbow' or an rmscol file
        linecolor (str or tuple): Color of grid lines (black/white/grey
            or a tuple with 4 numbers on valid matplotlib format)
        activeonly (bool): If only use active cells
        window (str): Some window
    """
    self._index = index
    if colormap is not None:
        self._colormap = colormap
    self._linecolor = linecolor
    if not isinstance(linecolor, tuple) and linecolor not in (
        "black",
        "grey",
        "white",
    ):
        raise ValueError("Value of linecolor is invalid")
    self._clist = grid.get_xyz_corners()  # get XYZ for each corner, 24 arrays
    self._grid = grid
    self._prop = prop
    self._window = window
    if self._geomlist is None:
        # returns (xori, yori, zori, xmin, xmax, ymin, ymax, zmin, zmax,...)
        self._geomlist = grid.get_geometrics(allcells=True, cellcenter=False)
    self._active = activeonly
    self._minvalue = minvalue
    self._maxvalue = maxvalue
    if mode == "column":
        pass  # self._plot_row()
    elif mode == "row":
        pass  # self._plot_row()
    else:
        self._plot_layer()