hydromodpy.display.figure#

Figure protocol and base class shared by every HydroModPy figure.

A figure is a class with a spec (static metadata) and a render(sim, ax) method (the only thing subclasses must implement). The ABC provides plot() which builds the matplotlib Figure, applies styling and handles saving.

All figures consume Run (catalog interface). They never touch a solver, a raw output file or a ProjectState.

Classes

BaseFigure()

ABC providing the universal plot() boilerplate.

Figure(*args, **kwargs)

The unique figure contract.

FigureSpec(name, title[, kind, ...])

Static metadata describing one figure type.