My Question
How do you plot a function $f(x,y)=z$ on a 2D surface $g(x,y)=z$.
A Simple Example
f[x_, y_] := (x - 0.5)^2 + (y - 0.5)^2;
g[x_, y_] := y Sin[x y]
DensityPlot[f[x, y], {x, 0, 2}, {y, 0, 2}]
(* 2D surface I want to plot on *)
Plot3D[g[x, y], {x, 0, 2}, {y, 0, 2}]
How can I plot the first on the second?
Notes
- If you have any questions or need clarification please ask.
ColorFunction
? $\endgroup$ColorFunction
. $\endgroup$