movingpandas.TrajectoryCollection.hvplot#
- TrajectoryCollection.hvplot(*args, **kwargs)#
Generate an interactive trajectory plot.
- Parameters:
args – These parameters will be passed to the TrajectoryPlotter
kwargs –
These parameters will be passed to the TrajectoryPlotter
To customize the plots, check the list of supported colormaps: https://holoviews.org/user_guide/Colormaps.html#available-colormaps
Examples
Plot speed along trajectories (with legend and specified figure size):
>>> collection.hvplot(c='speed', line_width=7.0, width=700, height=400, colorbar=True)
Plot speed along trajectories (scaling the colormap to specific min/max values):
>>> trajectory_collection.plot(column='speed', clim=(0,20))