I am new to mathematica and I know there are questions related to this topic but I could not find mine. My supervisor has asked me to shadowplot my Wigner functions which he showed me is like the following image:
From what I see, this image is a combination of a 3D plot and a 2D density plot of the Wigner function. This is an image from MATLAB but I want to plot my function using Mathematica as I have never used MATLAB before. I have tried plotting it like this:
a = -(E^-Abs[(0.` + 1.6487212707001282` I) p +
0.6065306597126334` q]^2/\[Pi]) +
0.6366197723675815` E^-Abs[(0.` + 1.6487212707001282` I) p +
0.6065306597126334` q]^2 Abs[(0.` + 1.6487212707001282` I) p +
0.6065306597126334` q]^2;
p1 = Plot3D[a, {q, -2, 2}, {p, -2, 2}, PlotRange -> All,
ImageSize -> Small, ColorFunction -> "Rainbow"];
p2 = DensityPlot[a, {q, -2, 2}, {p, -2, 2}, PlotRange -> All,
ColorFunction -> "Rainbow", ImageSize -> Small];
p3 = Plot3D[0, {q, -2, 2}, {p, -2, 2}, PlotStyle -> Texture[p2],
Mesh -> None]
Show[p1, p2, PlotRange -> {-2, 2}];
But it gives me the following image:
How do I get my desired plot?
Moreover, how to do the same for the following complex expression because in this case using MinValue command doesn't work?
'''a1 = (2 E^(-2 Abs[-(1/Sqrt[2]) + I p + q]^2) (7 - 20 I Sqrt[2] p -
24 p^2 - 20 Sqrt[2] q + 48 I p q + 24 q^2 +
8 (-3 + 8 p^2 + 8 I p (Sqrt[2] - 2 q) + 8 Sqrt[2] q -
8 q^2) Conjugate[p]^2 +
4 (-5 Sqrt[2] + 16 Sqrt[2] p^2 + 28 q - 16 Sqrt[2] q^2 -
4 I p (-7 + 8 Sqrt[2] q)) Conjugate[q] +
8 (3 - 8 p^2 - 8 I p (Sqrt[2] - 2 q) - 8 Sqrt[2] q +
8 q^2) Conjugate[q]^2 +
4 Conjugate[
p] (-16 I Sqrt[2] p^2 - 4 p (-7 + 8 Sqrt[2] q) +
I (5 Sqrt[2] - 28 q + 16 Sqrt[2] q^2) -
4 (-8 I p^2 + 8 p (Sqrt[2] - 2 q) +
I (3 - 8 Sqrt[2] q + 8 q^2)) Conjugate[
q])))/(3 \[Pi] (Sqrt[2] - 4 I p - 4 q) (Sqrt[2] +
4 I Conjugate[p] - 4 Conjugate[q]))'''