5
$\begingroup$

I am trying to get a high quality SliceCountorPlot3D with the following code

SliceContourPlot3D[((
   2 E^(2 Re[-((p1 + x0)^2/(
         2 (E^(-2 Subscript[r, 1]) + 2 E^(-2 Subscript[r, 2])))) + 
        Subscript[r, 1]] + 
     1/4 E^(Subscript[r, 1] + Subscript[r, 2]) (p1 + x0)^2 Sech[
       Subscript[r, 1] - Subscript[r, 2]] - Subscript[r, 1]) Sqrt[
    E^(2 Subscript[r, 1]) + E^(2 Subscript[r, 2])])/(
   2 E^(2 Subscript[r, 1]) + E^(2 Subscript[r, 2]))) /. {x0 -> 0, 
   Subscript[r, 1] -> r1, 
   Subscript[r, 2] -> r2}, "CenterCutBox", {r1, -1, 1}, {r2, -1, 
  1}, {p1, -5, 5}, PlotLegends -> Automatic, AxesLabel -> Automatic]

and Mathematica gives the following result:

enter image description here

Which shows irregular lines on the sides of the Plot. Then, my question is:

What do I have to add to my code to remove these irregular lines and get a better image quality?

$\endgroup$

1 Answer 1

7
$\begingroup$

Add the option BoundaryStyle -> None:

SliceContourPlot3D[expr, "CenterCutBox", 
 {r1, -1, 1}, {r2, -1, 1}, {p1, -5, 5}, 
 PlotLegends -> Automatic, 
 AxesLabel -> Automatic, 
 BoundaryStyle -> 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.