MultiWellPlot

petrophys.visualization.MultiWellPlot

class MultiWellPlot(items, options=None, labels=None)[source]

One log plot per well, drawn when needed and closed once shown or saved.

Returned by petrophys.plot() for several wells without curves. The figures are not held together in memory: save(folder) writes one file per well, show() and a notebook display draw each well in turn, and plot[i] or plot["15/9-12"] gives that well’s LogViewer.

Attributes

names

Labels, or else well names, in plotting order.

warnings

Each drawn well's viewer warnings, by its label (else its well name).

Methods

close

Nothing stays open: each figure is closed once shown or saved.

save

Save one plot per well to folder/<well name>.<format> (png, pdf, svg, ...).

show

Show each well's plot in turn.

Parameters:
  • items (Sequence[Any])

  • options (Optional[Dict[str, Any]])

  • labels (Optional[Sequence[str]])

warnings: Dict[str, List[str]]

Each drawn well’s viewer warnings, by its label (else its well name).

property names: List[str]

Labels, or else well names, in plotting order.

save(folder, format='png', dpi=150)[source]

Save one plot per well to folder/<well name>.<format> (png, pdf, svg, …).

A repeated well name gets _2, _3, …; each figure is closed once saved. Returns the written paths, in plotting order.

Parameters:
Return type:

List[Path]

show()[source]

Show each well’s plot in turn.

Return type:

None

close()[source]

Nothing stays open: each figure is closed once shown or saved.

Return type:

None