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?


1 Answer 1


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]}]

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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