hydromodpy.spatial.mesh.gmsh_grid.plotting_utils#

Gather small plotting helpers shared by the Gmsh reference scripts.

This file centralizes Matplotlib utilities that are reused across examples and comparison cases: backend switching, axis formatting, blocking display, and colorbar formatting. It exists to keep plotting policies consistent without mixing them into the mesh and discretization core.

Functions

disable_axis_offset(ax)

Disable scientific offset notation on x/y axes.

ensure_interactive_backend_for_show()

Switch to a GUI backend when running from inline/Agg contexts.

maybe_scientific_colorbar(cbar, values)

Switch colorbar ticks to scientific notation when the value range demands it.

show_figures_blocking(*figures)

Show one or many Matplotlib figures in blocking mode.