Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 3 down vote accepted

Try using Show[] for this. Eg:

 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

Your Answer


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.