如何在Mathematica中结合两个3dplot?

时间:2013-06-04 15:40:53

标签: wolfram-mathematica

我想绘制多元t分布的plot3d,并且在它的底部也出现对应的countourplot。 我使用以下代码

Needs["MultivariateStatistics"]

A = Plot3D[ PDF[MultivariateTDistribution[{{1, 1/2}, {1/2, 1}}, 10], {x, y}], {x, -3, 3}, {y, -3, 3}]

B = ContourPlot[ PDF[MultivariateTDistribution[{{1, 1/2}, {1/2, 1}}, 10], {x, y}], {x, -3, 3}, {y, -3, 3}]

Show[A, B]

但我不能。我知道如果在单变量情况下使用函数show,那么这些图就会合并。

请帮帮我。

由于

1 个答案:

答案 0 :(得分:0)

Show"有效地覆盖图形"彼此重叠,所以你可能想要ColumnGraphicsColumn之类的东西把它们放在一列中:

GraphicsColumn[{A, B}, ImageSize -> 300, Background -> White]

stacked