skspatial.objects.Points.plot_3d¶
- Points.plot_3d(ax_3d: Axes3D, **kwargs) None [source]¶
Plot the points on a 3D scatter plot.
- Parameters:
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
)