Figure plotly
subsurfaceio.geotech_plot.figure_plotly
Plotly renderer for geotechnical figures.
Classes:
| Name | Description |
|---|---|
GeotechFigure |
A Plotly figure with geotechnical axis, styling, and strata handling. |
GeotechFigure
pydantic-model
Bases: AnnotationsMixin, ShapesMixin, AxesMixin, StyleMixin, StrataMixin, PlotlyFigure, BaseFigure
A Plotly 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, and facet label substitution.
Fields:
-
sharex(bool) -
sharey(bool) -
plot_model(PlotModel) -
fig(Figure) -
reverse_x(bool) -
reverse_y(bool) -
minor_ticks(bool) -
x_ticks_above(bool) -
elevation_map(dict[str, float]) -
style_map(dict[str, StyleMap]) -
axis_map(dict[str, AxisMap])
place_x_ticks_above
place_x_ticks_above(
annotation_y_increment: float = 0.06,
update_top_margin: bool = True,
) -> Self
Move x-axis ticks and label to the top of each subplot.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
annotation_y_increment
|
float
|
Fraction of figure height to shift horizontal annotations up by, clearing the relocated ticks. |
0.06
|
update_top_margin
|
bool
|
Widen the top margin to fit the annotations. |
True
|
Returns:
| Type | Description |
|---|---|
Self
|
Self, for chaining. |