I am trying to draw a scene like in the picture below using Python matplotlib, but I got stuck on drawing the infinite line (the black & dotted one in the picture). In 2D, this line can be drawn using axline, but I couldn't find an alternative in 3D.
Is there any solution to this?

ax.hlineandax.vlineare parallel to the respective axis. as a workaround, you can usewith sufficiently far away points and appropriately scaled xyz-lims.