I have a problem specifying the PlotRange for the DensityHistogram plot if Method ->{DistributionAxes ->"Histogram"} is given.
The behaviour I would like to see is the following:
DensityHistogram[
Partition[
Riffle[RandomReal[NormalDistribution[0, 1], 1000],
RandomReal[NormalDistribution[0, 1], 1000]], 2], {{1}, {1}},
Method -> {"DistributionAxes" -> "Histogram"},
PlotRange -> {{0, 4}, {0, 4}}]
But if I change the range of the input data the behaviour does change in an unexpected way (at least for me) as there is some white space added at the y-axis.
DensityHistogram[
Partition[
Riffle[RandomReal[NormalDistribution[0, 100], 1000],
RandomReal[NormalDistribution[0, 1], 1000]], 2], {{1}, {1}},
Method -> {"DistributionAxes" -> "Histogram"},
PlotRange -> Automatic]
Even stranger the plot does not adhere the PlotRange anymore if it is explicitly given.
DensityHistogram[
Partition[
Riffle[RandomReal[NormalDistribution[0, 100], 1000],
RandomReal[NormalDistribution[0, 1], 1000]], 2], {{1}, {1}},
Method -> {"DistributionAxes" -> "Histogram"},
PlotRange -> {{0, 200}, {0, 5}}]
Does anybody have an idea what is happening and maybe how to workaround? (I am on Mathematica 10.4)
Show[DensityHistogram[], PlotRange -> {{0, 200}, {0, 5}}]
$\endgroup$ – Feyre Oct 25 '16 at 14:35