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.
or (the line all by itself):
Graphics3D[{Thickness[.01], Line@endpts}]
Bobby
--
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
you mean ParametricPlot3D[] and
ParametricPlot3D[
{t,0,0},{t,0,-5,5}]
will plot the line.
Regards
Jens
First, the given example will work better if written as follows (the
assignments = have been removed as well as the extra curly brackets),
Plot3D[{1 - x, y - 1}, {x, -5, 5}, {y, -5, 5}]
Second, to plot a line in 3D, one can use *Graphics3D* and *Line* as in
Graphics3D[Line[{{0, 0, 0}, {1, 1, 1}}]]
and one can combine a regular plot with a line with *Show*
Show[Plot3D[{1 - x, y - 1}, {x, -5, 5}, {y, -5, 5}],
Graphics3D[Line[{{0, 0, 0}, {0, 5, 5}}]]]
HTH,
--
Jean-Marc