1
$\begingroup$

I want to plot the following expression:

$$dx = x\left(-0.5+0.59y+1.3(x+y)-(x+y)^2-0.2z\right)=0$$

I tried this using the following code:

    dx:=x*(-0.5+0.59*y+1.3*(x+y)-(x+y)^2-0.2*z)
    c = ContourPlot3D[dx==0,{x,0,1.5},{y,0,2},{z,0,2.3},PlotRange->All]

I get the following output: enter image description here

The area in which the parabolic surface intersects the trivial surface is white. Why does this happen? How can I suppress this?

$\endgroup$
3
$\begingroup$

With the option MaxRecursion you can refine the plot:

dx := x*(-0.5 + 0.59*y + 1.3*(x + y) - (x + y)^2 - 0.2*z)
c = ContourPlot3D[dx == 0, {x, 0, 1.5}, {y, 0, 2}, {z, 0, 2.3},PlotRange -> All, MaxRecursion -> 5]

enter image description here

$\endgroup$
  • $\begingroup$ +1 Alternatively, increase the PlotPoints or use a combination of MaxRecursion and PlotPoints $\endgroup$ – Bob Hanlon Dec 4 '18 at 17:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.