pytransform3d.plot_utils.plot_ellipsoid

pytransform3d.plot_utils.plot_ellipsoid(ax=None, radii=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, n_steps=20, alpha=1.0, color='k')[source]

Plot ellipsoid.

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

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

radiiarray-like, shape (3,)

Radii along the x-axis, y-axis, and z-axis of the ellipsoid.

A2Barray-like, shape (4, 4)

Transform from frame A to frame B

ax_sfloat, optional (default: 1)

Scaling of the new matplotlib 3d axis

wireframebool, optional (default: True)

Plot wireframe of ellipsoid and surface otherwise

n_stepsint, optional (default: 20)

Number of discrete steps plotted in each dimension

alphafloat, optional (default: 1)

Alpha value of the ellipsoid that will be plotted

colorstr, optional (default: black)

Color in which the ellipsoid should be plotted

Returns
axMatplotlib 3d axis

New or old axis

Examples using pytransform3d.plot_utils.plot_ellipsoid