Layout
subsurfaceio.logplot.render.layout
Page geometry helpers and render constants.
Classes:
| Name | Description |
|---|---|
PageLayout |
Computed page geometry in pixels for one template. |
Functions:
| Name | Description |
|---|---|
compute_layout |
Derive pixel layout from a |
inches_to_px |
Convert inches to pixels at |
Attributes:
| Name | Type | Description |
|---|---|---|
FONT_FAMILY |
|
|
FONT_PATH |
|
|
FONT_SIZE |
|
|
MAJOR_TICK_STEP |
|
|
MINOR_TICK_STEP |
|
|
PPI |
|
|
PX_PER_PT |
|
|
RECT_FILL |
|
|
STROKE_WIDTH |
|
|
TEXT_MARGIN_PX |
|
PageLayout
pydantic-model
Bases: BaseModel
Computed page geometry in pixels for one template.
Attributes:
| Name | Type | Description |
|---|---|---|
width |
float
|
Page width in pixels. |
height |
float
|
Page height in pixels. |
margin_left |
float
|
Left margin in pixels. |
margin_right |
float
|
Right margin in pixels. |
margin_bottom |
float
|
Bottom margin in pixels. |
title_height |
float
|
Title band height in pixels. |
header_height |
float
|
Metadata header height in pixels. |
headers_height |
float
|
Column-title band height in pixels. |
report_body_height |
float
|
Log body height in pixels. |
Config:
frozen:True
Fields:
-
width(float) -
height(float) -
margin_left(float) -
margin_right(float) -
margin_bottom(float) -
title_height(float) -
header_height(float) -
headers_height(float) -
report_body_height(float)
compute_layout
Derive pixel layout from a LogPlotTemplate.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
template
|
LogPlotTemplate
|
Figure size, margins, header, and column-header style. |
required |
Returns:
| Type | Description |
|---|---|
PageLayout
|
Frozen page geometry used by page assembly and column renderers. |