pytransform3d.plot_utils.plot_box

pytransform3d.plot_utils.plot_box(ax=None, size=array([1., 1., 1.]), A2B=array([[1., 0., 0., 0.], [0., 1., 0., 0.], [0., 0., 1., 0.], [0., 0., 0., 1.]]), ax_s=1, wireframe=True, color='k', alpha=1.0)[source]

Plot box.

Parameters
axMatplotlib 3d axis, optional (default: None)

If the axis is None, a new 3d axis will be created

sizearray-like, shape (3,), optional (default: [1, 1, 1])

Size of the box per dimension

A2Barray-like, shape (4, 4)

Center of the box

ax_sfloat, optional (default: 1)

Scaling of the new matplotlib 3d axis

wireframebool, optional (default: True)

Plot wireframe of box and surface otherwise

colorstr, optional (default: black)

Color in which the box should be plotted

alphafloat, optional (default: 1)

Alpha value of the mesh that will be plotted

Returns
axMatplotlib 3d axis

New or old axis

Examples using pytransform3d.plot_utils.plot_box