skspatial.objects.Triangle.plot_3d¶
- Triangle.plot_3d(ax_3d, part: str = 'points', **kwargs: str) None[source]¶
Plot a triangle in 3D.
- Parameters:
Examples
>>> import matplotlib.pyplot as plt >>> from skspatial.objects import Triangle
>>> triangle = Triangle([0, 0], [1, 0], [0, 1])
>>> _, ax = plt.subplots()
>>> triangle.plot_2d(ax, part='points', s=100, zorder=3) >>> triangle.plot_2d(ax, part='lines', c='k')
(
Source code,png,hires.png,pdf)