I am trying to make a 3D contour plot I calculated in c++. I read in the results as tables and used the function ListSliceContourPlot3D.
This is what I got so far
I want to highlight the zero regions (region with value < 0.0001) using a white color,
i.e. purple -> white
Here is my code
data3d = Import["simulation220.txt",
"table"];
dim = Dimensions[data3d];
l = dim[[1]]/dim[[2]]; m = dim[[2]]; n = dim[[2]];
cuboid = Table[1, {x, l}, {y, m}, {z, n}];
For[i = 1, i < l + 1, i++, a = n*(i - 1) + 1; b = n*i;
cuboid[[i]] = data3d[[a ;; b]]];
ListSliceContourPlot3D[cuboid, {"ZStackedPlanes", {1, 87, 174}},
PlotTheme -> "Detailed",
ColorFunction -> ColorData[{"Rainbow", {0, 1}}],
Contours -> {0.0001, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9},
ContourStyle -> Black, PlotRange -> {All, All, All, {-.5, 1}},
Axes -> False, ClippingStyle -> White, AspectRatio -> 1.5,
ColorFunctionScaling -> False]
and here is my data simulation220
All the numbers in my data are positive.