def grid(self, draw_grid=True, grid_type='lines', **kwargs):

        if grid_type in ('lines', 'contours'):
            self._grid_type = grid_type
        else:
            raise ValueError("grid_type should be 'lines' or 'contours'")

        if 'color' in kwargs:
            kwargs['edgecolor'] = kwargs.pop('color')

        self.grid_lines_kwargs.update(kwargs)

        if self.grid_lines_kwargs['visible']:
            if not draw_grid:
                self.grid_lines_kwargs['visible'] = False
        else:
            self.grid_lines_kwargs['visible'] = True
Plot grid lines for this coordinate.
dataset/ETHPy150Open glue-viz/glue/glue/external/wcsaxes/coordinate_helpers.py/CoordinateHelper.grid