Figure mpl
subsurfaceio.reference_figure.figure_mpl
Matplotlib renderer for reference figure specs.
Classes:
| Name | Description |
|---|---|
MplReferenceFigure |
Matplotlib figure that draws a |
MplReferenceFigure
pydantic-model
Bases: ShapesMixin, LegendMixin, MplFigure
Matplotlib figure that draws a ReferenceFigureSpec.
Create via from_spec
or ReferenceFigureSpec.render_mpl.
Styling uses STYLE_RC, applied by
the inherited plot.
Fields:
fig
property
Rendered matplotlib figure.
Raises:
| Type | Description |
|---|---|
RuntimeError
|
When accessed before |
from_spec
classmethod
Build a renderer from a spec and optional matplotlib-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
|