pytransform3d.plot_utils.plot_cone

pytransform3d.plot_utils.plot_cone(ax=None, height=1.0, radius=1.0, 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 cone.

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

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

heightfloat, optional (default: 1)

Height of the cone

radiusfloat, optional (default: 1)

Radius of the cone

A2Barray-like, shape (4, 4)

Center of the cone

ax_sfloat, optional (default: 1)

Scaling of the new matplotlib 3d axis

wireframebool, optional (default: True)

Plot wireframe of cone and surface otherwise

n_stepsint, optional (default: 100)

Number of discrete steps plotted in each dimension

alphafloat, optional (default: 1)

Alpha value of the cone that will be plotted

colorstr, optional (default: black)

Color in which the cone should be plotted

Returns
axMatplotlib 3d axis

New or old axis

Examples using pytransform3d.plot_utils.plot_cone