pytransform3d.plot_utils.LabeledFrame

class pytransform3d.plot_utils.LabeledFrame(A2B, label=None, s=1.0, **kwargs)[source]

Bases: pytransform3d.plot_utils._artists.Frame

Displays a frame represented by its basis with axis labels.

Parameters
A2Barray-like, shape (4, 4)

Transform from frame A to frame B

labelstr, optional (default: None)

Name of the frame

sfloat, optional (default: 1)

Length of basis vectors

Other arguments except ‘c’ and ‘color’ are passed on to Line3D.
__init__(A2B, label=None, s=1.0, **kwargs)[source]

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

Methods

__init__(A2B[, label, s])

Initialize self.

add_frame(axis)

Add the frame to a 3D axis.

draw(renderer, *args, **kwargs)

Draw the artist.

set_data(A2B[, label])

Set the transformation data.

Attributes

set_data(A2B, label=None)[source]

Set the transformation data.

Parameters
A2Barray-like, shape (4, 4)

Transform from frame A to frame B

labelstr, optional (default: None)

Name of the frame

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

Draw the artist.

add_frame(axis)[source]

Add the frame to a 3D axis.

Examples using pytransform3d.plot_utils.LabeledFrame