lt_toolbox.TrajFrame.plot_trajectories#
- TrajFrame.plot_trajectories(sample_size: int | None = None, **kwargs)[source]#
Plot Lagrangian trajectories in a plotly express interactive figure.
- Parameters:
sample_size (int, default: None) – Size of random sample of Lagrangian trajectories to plot.
(optional) (**kwargs) – Additional keyword arguments to be passed to plotly line_geo(), when creating the figure.
- Returns:
Interactive figure of Lagrangian particle trajectories plotted as a plotly geographic line plot.
- Return type:
plotly.graph_objs._figure.Figure
Examples
Plot trajectories of ten randomly sampled Lagrangian particles.
>>> trajectories.plot_trajectories(sample_size=10).