mappy_ds.plot.plot_trajectory#
- mappy_ds.plot.plot_trajectory(trajectory, ax=None, *, xkey=0, ykey=1, styles=None, linewidth=1.0)#
Draw a
Trajectoryonto a matplotlib Axes.Segments whose dimension is too small to contain
xkeyandykeyare skipped.- Parameters:
- trajectoryTrajectory
Trajectory to draw, e.g. from
mappy_ds.Map.trajectory().- axmatplotlib.axes.Axes, optional
Axes to draw on; a new figure is created if omitted.
- xkey, ykeyint, optional
State components on the horizontal and vertical axes, by default
0and1.- stylesLineStyle or mapping of str to LineStyle, optional
One style for all segments or one per mode name (with optional
"_default"fallback). By default black, fully opaque lines.- linewidthfloat, optional
Line width, by default
1.0.
- Returns:
- matplotlib.axes.Axes
The Axes drawn on.