pytransform3d.plot_utils
.plot_spheres#
- pytransform3d.plot_utils.plot_spheres(ax=None, radius=array([1.]), p=array([[0., 0., 0.]]), ax_s=1, wireframe=True, n_steps=20, alpha=array([1.]), color=array([[0., 0., 0.]]))[source]#
Plot multiple spheres.
- Parameters:
- axMatplotlib 3d axis, optional (default: None)
If the axis is None, a new 3d axis will be created
- radiusarray-like, shape (n_spheres,), optional (default: 1)
Radius of the sphere(s)
- parray-like, shape (n_spheres, 3), optional (default: [0, 0, 0])
Center of the sphere(s)
- ax_sfloat, optional (default: 1)
Scaling of the new matplotlib 3d axis
- wireframebool, optional (default: True)
Plot wireframe of sphere(s) and surface otherwise
- n_stepsint, optional (default: 20)
Number of discrete steps plotted in each dimension
- alphaarray-like, shape (n_spheres,), optional (default: 1)
Alpha value of the sphere(s) that will be plotted
- colorarray-like, shape (n_spheres, 3), optional (default: black)
Color in which the sphere(s) should be plotted
- Returns:
- axMatplotlib 3d axis
New or old axis
Examples using pytransform3d.plot_utils.plot_spheres
#
Plot Multiple Spheres