plot_trajectory¶
- geodetic_engine.welltrajectory.plot_trajectory(*trajectories, color_by='dls', labels=None, projections=True, stations=True, title=None)[source]¶
Draw trajectories as an interactive plotly figure.
Shown in place by a notebook, or in the browser by
open_in_browser().- Parameters:
trajectories (
WellTrajectory) – One or more trajectories, all in the same CRS. Vertical values, MD and dogleg severity are displayed in the first trajectory’s units; the input trajectories are not modified.color_by (
Literal['dls','md'] |None, default:"dls") – Colour each path by dogleg severity or by measured depth; with None each well gets a colour of its own.labels (
Sequence[str] |None, default:None) – A name per trajectory, for the legend and the hover box; each trajectory’s ownnamewhen omitted.projections (
bool, default:True) – Also draw each path’s shadow on the floor and two walls.stations (
bool, default:True) – Also mark each surveyed station on its path, to show the path passing through them. Points added by interpolation are not marked.title (
str|None, default:None) – Figure title; the CRS’s name when omitted.
- Return type:
- Returns:
A
plotly.graph_objects.Figure.- Raises:
ImportError – If plotly is not installed.
ValueError – If no trajectory is given, they are in different CRSs, the labels do not match them one for one, or
color_byis not"dls","md"or None.