Skip to content

Strata

subsurfaceio.geotech_plot.mixins.plotly.strata

Categorical strata bands for Plotly figures.

Classes:

Name Description
StrataMixin

Redraws categorical parameter traces as stacked colored bands.

Functions:

Name Description
is_null_or_empty

Whether a categorical strata value carries no information.

StrataMixin pydantic-model

Bases: SubplotsMixin, BaseModel

Redraws categorical parameter traces as stacked colored bands.

Attributes:

Name Type Description
elevation_map dict[str, float]

Surface elevation per trace name, used to place the first band when plotting against elevation rather than depth.

Fields:

elevation_map pydantic-field

elevation_map: dict[str, float]

is_null_or_empty

is_null_or_empty(x: object) -> bool

Whether a categorical strata value carries no information.

Parameters:

Name Type Description Default
x object

Value read off a trace.

required

Returns:

Type Description
bool

True for None, the empty string, and NaN.