GridPlotMixin#

class grids.mixins.core.GridPlotMixin[source]#

Mixin class for plotting 2D projections of structured coordinate grids.

Provides utility methods to visualize:

  • Grid lines aligned with coordinate axes

  • Chunk boundaries (if chunking is enabled)

Useful for debugging domain layout, visualizing ghost zones, and showing subdomain tiling in structured finite difference computations.

Methods

__init__()

plot_chunk_lines([grid_axes, ax, include_ghosts])

Plot chunk boundaries along the specified 2D projection of the domain.

plot_ghost_zone_shading([grid_axes, ax, ...])

Shade the ghost zones in a 2D grid projection.

plot_grid_lines([grid_axes, ax, include_ghosts])

Plot coordinate grid lines along the specified 2D slice of the domain.