import matplotlib.pyplot as plt
#
from skspatial.objects import Point, Line
#
point = Point([0, 5])
line = Line(point=[0, 0], direction=[1, 1])
#
point_projected = line.project_point(point)
#
_, ax = plt.subplots()
#
line.plot_2d(ax, t_2=5, c='k')
#
point.plot_2d(ax, s=50)
point_projected.plot_2d(ax, c='r', s=50, zorder=3)
#
limits = ax.axis('equal')
