I have the following function of five parameters of which I would like to construct a 3D density plot using Plot3D
d = 4 (12 g1^2 + 12 g2^2 + 12 g3^2 - Γ^2 + Γ κ1 - κ1^2 + (Γ + κ1) κ2 - κ2^2)^3 + (36 g1^2 (Γ + κ1 - 2 κ2) + (36 g3^2 - (Γ + κ1 - 2 κ2) (2 Γ - κ1 - κ2)) (Γ - 2 κ1 + κ2) + 36 g2^2 (-2 Γ + κ1 + κ2))^2
I then do
solg3 = g3 /.Solve[d == 0, g3] /. {Γ -> 0.01, κ1 -> 1, κ2 -> 20};
And plot
Plot3D[solg3, {g1, 0, 2.5}, {g2, 0, 8}, ImageSize -> Large, PlotRange -> All, RegionFunction -> Function[{g1, g2, solg3}, solg3 >= 0]]
I am returned with
At this point, I am seeing a lot of jagged lines on the contour and I'm not sure why this is happening. Firstly, it can be seen that there are six solutions to solg3
but I only want positive values of g3
hence there are only three contours. However, I'm puzzled by the appearance of those jagged lines on the lower edges of the contour surface. Why is this happening? And why are there gaps? Is it saying that g3
is complex in those regions?
MaxRecursion
with a large value (sayMaxRecursion -> 10
) and increasePlotPoints
(sayPlotPoints->200
) $\endgroup$ – kglr Jun 13 '19 at 21:09d
. And PlotPoints of 5 is not enough. Any other suggestions? $\endgroup$ – kowalski Jun 13 '19 at 21:35