import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
#
from skspatial.objects import LineSegment
#
fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')
#
segment = LineSegment([1, 2, 3], [0, 1, 1])
#
segment.point_a.plot_3d(ax, c='b', s=100, zorder=3)
segment.point_b.plot_3d(ax, c='r', s=100, zorder=3)
#
segment.plot_3d(ax, c='k')
