Skip to content

Graphic

subsurfaceio.logplot.render.columns.graphic

Hatch/fill graphic column renderer.

Classes:

Name Description
GraphicColumnRenderer

Renders hatch/fill graphic blocks (lithology, well construction, etc.).

Functions:

Name Description
pointer_lane_fraction

Return hatch-attachment fraction for a gINT-style well pointer.

GraphicColumnRenderer

Renders hatch/fill graphic blocks (lithology, well construction, etc.).

Methods:

Name Description
render

Render hatch blocks, then optional pointer labels for the page.

render staticmethod

render(column: Column, ctx: RenderContext) -> str

Render hatch blocks, then optional pointer labels for the page.

Hatch pass: rows with hatch + bottom depth, clipped to the page. Label pass: rows with text; Y is interval midpoint or point depth_top; shared text column with leaders attached on the hatch by pointer_field; light collision elbows.

Parameters:

Name Type Description Default
column Column

Column whose model is a GraphicColumn.

required
ctx RenderContext

Page geometry, dumped data, and shared SVG definitions.

required

Returns:

Type Description
str

Concatenated SVG for graphic blocks, borders, and labels.

Raises:

Type Description
TypeError

If column.model is not a GraphicColumn.

ValueError

If both hatch_field and color_field are set, or if a pointer letter is unsupported.

pointer_lane_fraction

pointer_lane_fraction(
    pointer: WellPointer | str | None,
) -> float

Return hatch-attachment fraction for a gINT-style well pointer.

Text labels share one column; pointer only selects where the leader tip meets the hatch strip (0–1 of graphic width).

Parameters:

Name Type Description Default
pointer WellPointer | str | None

C (center), A (annulus), E (edge), or None for flush (no leader; attach at hatch edge).

required

Returns:

Type Description
float

Fraction in [0, 1] of the hatch strip width.

Raises:

Type Description
ValueError

If pointer is not a supported lane letter.