Context
subsurfaceio.logplot.render.context
Page-level render context passed to column renderers.
Classes:
| Name | Description |
|---|---|
RenderContext |
Page-level geometry and state for a column renderer. |
RenderContext
dataclass
Page-level geometry and state for a column renderer.
Passed explicitly rather than accessed via LogPlot internals so each
renderer stays independently testable.
Methods:
| Name | Description |
|---|---|
get_filtered_records |
Return records whose y range intersects the current page. |
y_to_px |
Convert a depth delta (from page top) to pixels. |
Attributes:
| Name | Type | Description |
|---|---|---|
content_width |
float
|
|
data_dump |
dict[str, Any]
|
|
metadata |
LogPlotMetadata
|
|
page_y_bottom |
float
|
|
page_y_top |
float
|
|
report_body_height |
float
|
|
svg_definitions |
SVGDefinitions
|
|
y_values_per_page |
float
|
|
get_filtered_records
get_filtered_records(
model: _IntervalFields,
data_records: list[dict[str, Any]],
) -> list[dict[str, Any]]
Return records whose y range intersects the current page.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
model
|
_IntervalFields
|
Column model exposing |
required |
data_records
|
list[dict[str, Any]]
|
Dumped rows from |
required |
Returns:
| Type | Description |
|---|---|
list[dict[str, Any]]
|
Records that overlap |