Skip to content

Figure mpl

subsurfaceio.geotech_plot.figure_mpl

Matplotlib renderer for geotechnical figures.

Classes:

Name Description
GeotechFigure

A matplotlib figure with geotechnical axis, styling, and strata handling.

GeotechFigure pydantic-model

Bases: AnnotationsMixin, ShapesMixin, AxesMixin, StyleMixin, StrataMixin, LegendMixin, MplFigure, BaseFigure

A matplotlib figure with geotechnical axis, styling, and strata handling.

Extends the express render with parameter-aware post-processing: axis scales and bounds, per-trace styling, data-bin bands, categorical strata, facet label substitution, and a consolidated figure legend.

Fields:

place_x_ticks_above

place_x_ticks_above(
    annotation_y_increment: float = 20,
) -> Self

Move x-axis ticks and label to the top of each subplot.

Parameters:

Name Type Description Default
annotation_y_increment float

Pixels to shift horizontal annotations up by, clearing the relocated ticks.

20

Returns:

Type Description
Self

Self, for chaining.