skspatial.objects.Plane.plot_3d

Plane.plot_3d(ax_3d: Axes3D, lims_x: Union[ndarray, Sequence] = (-1, 1), lims_y: Union[ndarray, Sequence] = (-1, 1), **kwargs) None[source]

Plot a 3D plane.

Parameters:
ax_3dAxes3D

Instance of Axes3D.

lims_x, lims_y(2,) tuple

x and y limits of the plane. Tuple of form (min, max). The default is (-1, 1). The point on the plane is used as the origin.

kwargsdict, optional

Additional keywords passed to plot_surface().

Examples

>>> import matplotlib.pyplot as plt
>>> from mpl_toolkits.mplot3d import Axes3D
>>> from skspatial.objects import Plane
>>> fig = plt.figure()
>>> ax = fig.add_subplot(111, projection='3d')
>>> plane = Plane([5, 3, 1], [1, 0, 1])
>>> plane.plot_3d(ax, alpha=0.2)
>>> plane.point.plot_3d(ax, s=100)

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

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