pytransform3d.plot_utils.Trajectory

class pytransform3d.plot_utils.Trajectory(H, show_direction=True, n_frames=10, s=1.0, **kwargs)[source]

Bases: matplotlib.artist.Artist

A Matplotlib artist that displays a trajectory.

Parameters
Harray-like, shape (n_steps, 4, 4)

Sequence of poses represented by homogeneous matrices

show_directionbool, optional (default: True)

Plot an arrow to indicate the direction of the trajectory

n_framesint, optional (default: 10)

Number of frames that should be plotted to indicate the rotation

sfloat, optional (default: 1)

Scaling of the frames that will be drawn

Other arguments are passed onto Line3D.
__init__(H, show_direction=True, n_frames=10, s=1.0, **kwargs)[source]

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(H[, show_direction, n_frames, s])

Initialize self.

add_trajectory(axis)

Add the trajectory to a 3D axis.

draw(renderer, *args, **kwargs)

Draw the artist.

set_data(H)

Set the trajectory data.

Attributes

set_data(H)[source]

Set the trajectory data.

Parameters
Harray-like, shape (n_steps, 4, 4)

Sequence of poses represented by homogeneous matrices

draw(renderer, *args, **kwargs)[source]

Draw the artist.

add_trajectory(axis)[source]

Add the trajectory to a 3D axis.

Examples using pytransform3d.plot_utils.Trajectory