skspatial.objects.Points.plot_3d

Points.plot_3d(ax_3d: Axes3D, **kwargs) None[source]

Plot the points on a 3D scatter plot.

Parameters
ax_3dAxes3D

Instance of Axes3D.

kwargsdict, optional

Additional keywords passed to scatter().

Examples

>>> import matplotlib.pyplot as plt
>>> from mpl_toolkits.mplot3d import Axes3D
>>> from skspatial.objects import Points
>>> fig = plt.figure()
>>> ax = fig.add_subplot(111, projection='3d')
>>> points = Points([[1, 2, 1], [3, 2, -7], [-4, 2, 2], [-2, 3, 1]])
>>> points.plot_3d(ax, s=75, depthshade=False)

(Source code, png, hires.png, pdf)

../../../_images/skspatial-objects-Points-plot_3d-1.png