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