Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I'd like to plot a graph of a function using e.g. Plot3D and then a line (in general a curve, in my case a straight line, tangent at some point to the surface just drawn), using e.g. ParametricPlot3D in the same picture. Is it possible? If yes, how?

share|improve this question
add comment

1 Answer 1

up vote 3 down vote accepted

Try using Show[] for this. Eg:

Show[
 Plot3D[Sin[x + y^2], {x, -3, 3}, {y, -2, 2}],
 ParametricPlot3D[{Cos[u], Sin[u] + Cos[v], Sin[v]}, {u, 0, 
   2 \[Pi]}, {v, -\[Pi], \[Pi]}]
 ]
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.