problem to draw plane equation 4x + 5y - 2z = 18
I try to illustrate the result of a problem which consist of finding the intersect point between a line and a plane. Solution is supposed to be point P(-4,8,3). Line and point seems to be displayed correctly but not the plane which correspond to the equation: 4x + 5y -2z = 18. I tried several options without success. Could anyone pinpoint the error in my code?
t, x, y, z = var('t x y z')
f(t) = 2 + 3*t
g(t) = -4*t
h(t) = 5 + t
line = parametric_plot3d((f(t), g(t), h(t)), (t, -3, 3), color="blue")
plan = implicit_plot3d(4*x + 5*y -2*z - 18, (y,-10,10),(z,-10,10),(x,-10,10), color="blue", opacity=0.5)
X = arrow3d((0, 0, 0), (1,0,0), color="black")
Y = arrow3d((0, 0, 0), (0,1,0), color="black")
Z = arrow3d((0, 0, 0), (0,0,1), color="black")
P = point((-4,8,3), size=5, color="red")
X + Y + Z + P + line + plan