Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 8 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) &)]


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


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.