1

我可以在同一密度直方图(mathematica)中绘制 2 组不同的数据({x1,y1} 和 {x2,y2})吗?

由于颜色的叠加,我不知道这是否可能。

4

1 回答 1

0

How about something like this?

a = SmoothDensityHistogram[
   RandomVariate[BinormalDistribution[0.3], 10], Mesh -> 3, 
   MeshStyle -> Red, ColorFunction -> None];
b = SmoothDensityHistogram[
   RandomVariate[BinormalDistribution[0.6], 10], Mesh -> 3, 
   MeshStyle -> Blue, ColorFunction -> None];
Show[
 a /. GrayLevel[_] -> Opacity[0],
 b /. GrayLevel[_] -> Opacity[0],
 ImageSize -> 300]

enter image description here

于 2013-06-12T10:12:49.383 回答