level 6
吊死在网上
楼主
问题: Method->{"DistributionAxes" ->“SmoothHistogram”},该命令在SmoothDensityHistogram中不起作用了么?
如下代码,应当生成下图(其中之一)

data = RandomReal[BinormalDistribution[{-1, 2}, {1, 1}, .8], 1000];
GraphicsColumn[
Table[SmoothDensityHistogram[data, ColorFunction -> "DarkRainbow",
Method->{"DistributionAxes" -> p},
ImageSize -> 500, BaseStyle -> {FontFamily -> "Helvetica"},MeshFunctions->{#3&},Mesh->5,
LabelStyle -> Bold],
{p, {True, "SmoothHistogram", "BoxWhisker","Histogram"}}]]
恳请大佬解惑
2019年01月25日 10点01分
1
如下代码,应当生成下图(其中之一)

data = RandomReal[BinormalDistribution[{-1, 2}, {1, 1}, .8], 1000];GraphicsColumn[
Table[SmoothDensityHistogram[data, ColorFunction -> "DarkRainbow",
Method->{"DistributionAxes" -> p},
ImageSize -> 500, BaseStyle -> {FontFamily -> "Helvetica"},MeshFunctions->{#3&},Mesh->5,
LabelStyle -> Bold],
{p, {True, "SmoothHistogram", "BoxWhisker","Histogram"}}]]
恳请大佬解惑