grids.mixins.core.GridPlotMixin.plot_grid_lines#
- GridPlotMixin.plot_grid_lines(grid_axes: Sequence[str] | None = None, ax: Axes | None = None, include_ghosts: bool = False, **kwargs)[source]#
Plot coordinate grid lines along the specified 2D slice of the domain.
- Parameters:
grid_axes (
list
ofstr
, optional) – The two coordinate axes to display in the plot. If not specified, the first two axes of the coordinate system are selected.ax (
Axes
, optional) – Matplotlib axis object to draw into. If None, a new figure is created.include_ghosts (
bool
, defaultFalse
) – Whether to include ghost zones in the plotting extent and coordinates.**kwargs – Additional keyword arguments passed to
matplotlib.pyplot.hlines()
andmatplotlib.pyplot.vlines()
(e.g., linewidth, linestyle, etc).
- Returns:
The matplotlib axis object used for plotting.
- Return type: