Is it possible to display e.g., $z=x^2+y^2$ with Plot3D and in the same box, in the $z=0$ plane, plot its gradient?
Asked
Active
Viewed 954 times
0
-
Check out http://mathematica.stackexchange.com/questions/14863/placing-a-contourplot-under-a-plot3d – Zviovich Dec 24 '14 at 20:07
-
Related: http://mathematica.stackexchange.com/q/18758 – Michael E2 Dec 25 '14 at 05:33
1 Answers
5
p = Plot3D[x^2 + y^2, {x, -1, 1}, {y, -1, 1}];
pv = VectorPlot3D[{{2 x, 2 y, 0}, {-2 y, 2 x, 0}}, {x, -1, 1}, {y, -1,
1}, {z, -0.01, 0.01},
PlotRange -> {Automatic, Automatic, {-1, 1}}];
Show[pv, p]

Basheer Algohi
- 19,917
- 1
- 31
- 78