Is there any way, in Mathematica, I can plot a straight line in a 3D plot environment?(adsbygoogle = window.adsbygoogle || []).push({});

For example: Plot3D[{{y = 1 - x, z = y - 1}}, {x, -5, 5}, {y, -5, 5}]

plots two surfaces, not their intersection (which is a straight line).

Thank you in advance.

**Physics Forums | Science Articles, Homework Help, Discussion**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# [Mathematica] Plotting a straight line in a 3D plot

**Physics Forums | Science Articles, Homework Help, Discussion**