1
$\begingroup$

My question is related to that question in this link How: 2D scatterplots with quantitative density-dependent coloring

So how to make the following Density Histogram plot in log scale

DensityHistogram[data, "Wand", "Count", ColorFunction -> "TemperatureMap", 
ChartLegends -> Automatic]
$\endgroup$
4
$\begingroup$

If this is not what you want please clarify your question:

data1 = RandomVariate[BinormalDistribution[{0, 0}, {2, 3}, 0.5], 100000];
data2 = RandomVariate[BinormalDistribution[{3, 4}, {2, 2}, .1], 100000];
data = data1~Join~data2;

DensityHistogram[data, {"Log", "Wand"}, "Count",
 ColorFunction -> "TemperatureMap", 
 ChartLegends -> Automatic]

enter image description here

DensityHistogram[data, "Wand", {"Log", "Count"},
 ColorFunction -> "TemperatureMap", 
 ChartLegends -> Automatic]

enter image description here

DensityHistogram[data, {"Log", "Wand"}, {"Log", "Count"}, 
 ColorFunction -> "TemperatureMap",
 ChartLegends -> Automatic]

enter image description here

The plain form for comparison:

DensityHistogram[data, "Wand", "Count",
 ColorFunction -> "TemperatureMap", 
 ChartLegends -> Automatic]

enter image description here

$\endgroup$
  • $\begingroup$ Many thanks! your solution is useful. $\endgroup$ – S.m. Shaaban Feb 18 '17 at 13:30
  • $\begingroup$ How could this be modified so that only the y-axis is log scale? $\endgroup$ – geordie Mar 22 '18 at 9:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.