Figure plotly
subsurfaceio.reference_figure.figure_plotly
Plotly renderer for reference figure specs.
Classes:
| Name | Description |
|---|---|
PlotlyReferenceFigure |
Plotly figure that draws a |
PlotlyReferenceFigure
pydantic-model
Bases: ShapesMixin, PlotlyFigure
Plotly figure that draws a ReferenceFigureSpec.
Create via from_spec
or ReferenceFigureSpec.render_plotly.
Fields:
-
sharex(bool) -
sharey(bool) -
plot_model(PlotModel) -
spec(ReferenceFigureSpec)
fig
property
Rendered Plotly figure.
Raises:
| Type | Description |
|---|---|
RuntimeError
|
When accessed before |
from_spec
classmethod
Build a renderer from a spec and optional Plotly Express overrides.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
spec
|
ReferenceFigureSpec
|
Cached catalog spec. |
required |
**plot_kwargs
|
Any
|
Merged into |
{}
|
Returns:
| Type | Description |
|---|---|
Self
|
Configured figure; call
|