Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I would like to plot a real-valued function $f$ of two real variables $x,y$ but only over the region of the $x$-$y$ plane satisfying \begin{align} x>0, \qquad -x^{3/2} < y < x^{3/2}. \end{align} Is there a straightforward way to do this using Plot3D?

share|improve this question

1 Answer 1

up vote 7 down vote accepted

RegionFunction option is what you're looking for:

Plot3D[Cos[x] + Sin[y], {x, -1, 5}, {y, -5, 5},
 RegionFunction -> (#1 > 0 && - #1^(3/2) < #2 < #1^(3/2) &)]

plot

The arguments provided to the function vary a bit depending on which plot function you are using, you can see under "Details" in the documentation. ("More Information" in older versions)

share|improve this answer
    
Perfect thanks! –  joshphysics Sep 13 '13 at 0:01

Your Answer

 
discard

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.