This is a quick follow up to my other question which I thought was different enough to warrant a separate post.
My Question
How do you plot a region (such as $f(x,y)>z$) on a 2D surface $g(x,y)=z$ and change the color of the region?
A Simple Example
f[x_, y_] := Sin[x] + Sin[y];
g[x_, y_] := y x Sin[x y];
img = RegionPlot[3/2 > f[x, y] > 1, {x, 0, 2}, {y, 0, 2},
Frame -> False, PlotRangePadding -> None, PlotStyle -> Orange,
BoundaryStyle -> Black]
Plot3D[g[x, y], {x, 0, 2}, {y, 0, 2}, PlotStyle -> {Texture[img]}]
So I have figured out how to overlay the region plot on the surface, but the only color the region appears is black. This is in spite that I specified the RegionPlot
to be Orange
. How can I change the region plot on the surface to anything but black.
Notes
- If you have any questions or need clarification please ask.
- Again this is a quick follow up on my previous question.