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 - The Fusion of Science and Community**

Join Physics Forums Today!

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

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

Loading...

Similar Threads for Mathematica Plotting straight | Date |
---|---|

Mathematica Cannot Plot This Function in Mathematica | Feb 26, 2018 |

Mathematica Is the integral for current correct? | Jul 7, 2017 |

Mathematica Mathematica Plot Real Portion (Contour Plot) | Jun 21, 2017 |

Mathematica Add a rectangle to a plot to indicate range | Jun 15, 2017 |

Mathematica Part of complex plot disappears [mathematica] | Apr 19, 2017 |

**Physics Forums - The Fusion of Science and Community**