ContourPlot3D
is not very good at resolving thin features, because it only knows that the feature exists when one of the sampling points happens to land inside it. In general, one thing you can do is to increase PlotPoints
, which improves the plot but takes a very long time.
ContourPlot3D[
Abs[c[x + I y]] == k^3, {x, -2.5, 2}, {y, -2, 2}, {k, 0, 1.75},
Background -> White, AxesLabel -> {"x", "y", "k"}, PlotPoints -> 20]
In this particular case, though, your plot is equivalent to $k = |c(x+iy)|^{1/3}$, so you could just use Plot3D
instead. This is much faster because it only has to sample the two-dimensional $xy$ plane rather than the three-dimensional $xyk$ space. Then you can afford to make MaxRecursion
quite large and it's still really quick to plot.
Plot3D[Abs[c[x + I y]]^(1/3), {x, -2.5, 2}, {y, -2, 2}, PlotRange -> {0, 1.75},
Background -> White, AxesLabel -> {"x", "y", "k"}, ClippingStyle -> None,
BoxRatios -> 1, MeshFunctions -> {#1 &, #2 &, #3 &}, MaxRecursion -> 5]
(I've added a few options to make it look like your original plot.)
PlotPoints
orMaxRecursion
. But why not applyPlot3D
to $|c(x+iy)|^{1/3}$ instead? It'll be much faster, and then you can increaseMaxRecursion
to like 5 and get a really nice plot very quickly. $\endgroup$k = 0
. And ContourPlot is looking for the switch of sign of lhs-rhs of equation, roughly speaking. $\endgroup$