Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Plotting a straight line in a 3D plot

  • To: mathgroup at smc.vnet.net
  • Subject: [mg81033] Re: Plotting a straight line in a 3D plot
  • From: dimitris <dimmechan at yahoo.com>
  • Date: Sat, 8 Sep 2007 03:56:45 -0400 (EDT)
  • References: <fbqq6f$727$1@smc.vnet.net>

On 7     , 09:13, kheimon <khei... at gmail.com> wrote:
> Is there any way, in Mathematica, I can plot a straight line in a 3D
> plot environment?
>
> 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.

Show[Graphics3D[{{Red, Line[{{0, 0, 0}, {1, 1, 1}}]},{Blue, Line[{{1,
0, 1}, {0, 1/2, 1/2}}]}}], Axes -> True, AxesLabel -> {"x", "y", "z"}]

???

Dimitris



  • Prev by Date: Creating slide-shows with Manipulate images
  • Next by Date: Re: Plotting a straight line in a 3D plot
  • Previous by thread: Plotting a straight line in a 3D plot
  • Next by thread: Re: Plotting a straight line in a 3D plot