Would like the plot below to only display when the output (i.e. the vertical axis) is not equal to zero. Experimented with ‘RegionFunction’ option but it hasn’t been working. How might I get this to work?
Show[
Plot3D[
If[
Last[Flatten[NSolve[p == x*Log[t + 1], x, Reals]]][[2]] > 6,
1,
If[
Last[Flatten[NSolve[p == x*Log[t + 1], x, Reals]]][[2]] < -0.25,
0,
Last[Flatten[NSolve[p == x*Log[t + 1], x, Reals]]][[2]]]]
, {t, 0, 5.4}, {p, -1, 1}
, PlotStyle -> Opacity[0.35]
, FaceGrids -> All
, PerformanceGoal -> "Quality"
, ColorFunction -> "Rainbow", PlotLegends -> Automatic
, PlotTheme -> "Web"
, ImageSize -> 700
, BoundaryStyle -> Thick
, AxesLabel -> Automatic
, RegionFunction -> Function[{z}, 0 <= z ]
]
, PlotRange -> {{0, 5.4}, {-1, 1}, {-1, 1}}]