5
$\begingroup$

I have strange missing parts in contour plot of values using following code:

points = SpherePoints[100];
values = RandomReal[{0.000015831726713187197, 
    0.000017509814943585526}, 100];
data = MapThread[Append, {points, values}];
ListSliceContourPlot3D[data, "CenterSphere", PlotLegends -> Automatic]

As you can see there are many missing parts (holes) in plot:

enter image description here

,Would you please help.

$\endgroup$
3
  • $\begingroup$ You get holes because you have not enough points. $\endgroup$ Commented Feb 21, 2022 at 12:27
  • $\begingroup$ actually I tried it with 1000 points, the same problem appeared! $\endgroup$ Commented Feb 21, 2022 at 12:30
  • $\begingroup$ You are right. I would report it to: [email protected] $\endgroup$ Commented Feb 21, 2022 at 12:47

1 Answer 1

1
$\begingroup$

This is a similar problem to this. A workaround is to set a looser region:

ListSliceContourPlot3D[data
, ImplicitRegion[1 - 0.2 < x^2 + y^2 + z^2 < 1 + 0.2, {x, y, z}]
, PlotLegends -> Automatic]

enter image description here

$\endgroup$
1
  • $\begingroup$ Thank you, but I am afraid "the sphere radius" interferes in the resulted contours, the result of ListSliceContourPlot3D. How I can be sure that radius is exactly equals to 1? $\endgroup$ Commented Feb 22, 2022 at 19:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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