rigid_body_motion.plot.quaternions¶
- rigid_body_motion.plot.quaternions(arr, base=None, ax=None, figsize=(6, 6), **kwargs)¶
Plot an array of quaternions.
- Parameters
- arr: array_like, shape (4,) or (N, 4)
Array of quaternions to plot.
- base: array_like, shape (4,) or (N, 4), optional
If provided, base points of the quaternions.
- ax: matplotlib.axes.Axes instance, optional
If provided, plot the points onto these axes.
- figsize:
If ax is not provided, create a figure of this size.
- kwargs:
Additional keyword arguments passed to ax.quiver().
- Returns
- lines: list of Line3DCollection
A list of lines representing the plotted data.