1
$\begingroup$

I have a problem I would like to make a plot of a 3D density that looks similar with SliceDensityPlot3D with "ZStackedPlanes" options but without the God awful planes that appear, keeping only the density. For example, in the code bellow

    SliceDensityPlot3D[
 Exp[(-((\[Eta] (a^2 + (x^2 + y^2) \[Omega]^2 + 
      2 a  \[Omega] (x Cos[(z) \[Omega]] + 
         y Sin[(z) \[Omega]])))/ (\[Omega]^2)))] //. {\[Omega] -> 2, 
   a -> 1, \[Eta] -> 1}, "ZStackedPlanes", {x, -2, 2}, {y, -2, 
  2}, {z, -2, 2}]

how could I keep that density and completely remove the planes?

Thanks

$\endgroup$
3
  • $\begingroup$ do you get what you need if you add the options PlotRange->{0.5,1} and ClippingStyle->None? $\endgroup$
    – kglr
    Commented Sep 23, 2019 at 7:32
  • $\begingroup$ ... or, alternatively, using the option RegionFunction -> Function[{x, y, z, f}, .5<f<1]? $\endgroup$
    – kglr
    Commented Sep 23, 2019 at 7:40
  • $\begingroup$ By adding PlotRange->{0.5,1} and ClippingStyle->None I get what I need. Thanks a lot! $\endgroup$
    – user179774
    Commented Sep 23, 2019 at 8:47

1 Answer 1

1
$\begingroup$

You can add the options PlotRange -> {0.5, 1} and ClippingStyle -> None:

SliceDensityPlot3D[Exp[(-((η (a^2 + (x^2 + y^2) ω^2 + 2 a  ω (x Cos[(z) ω] + 
     y Sin[(z) ω])))/ (ω^2)))] /. {ω -> 2, a -> 1, η -> 1}, 
  "ZStackedPlanes", 
   {x, -2, 2}, {y, -2, 2}, {z, -2, 2},
   PlotRange -> {0.5, 1}, ClippingStyle -> None]

enter image description here

$\endgroup$

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.