How can I get a histogram with a logarithmic scale only on the the y-axis?
With
data=RandomReal[NormalDistribution[0, 1], 200]
Histogram[data, {"Log", 10}, "LogCount"]
I get a log scaled histogram for both axis. I'm using mathematica 7.
The second argument to Histogram
controls the bins, the third the counts so simply use
Histogram[data, Automatic, "LogCount"]
or as suggested by @Bill use "Linear"
in place of Automatic
.
Example:
data = Flatten@{Array[1 &, 5], Array[3 &, 20], Array[2 &, 180]};
Histogram[data, ScalingFunctions -> "Log",
Ticks -> {{# + .5, #} & /@ Range[1, 3], Automatic}]
gives:
Histogram[data, Automatic, "LogCount"]
works for me (Mma 9). $\endgroup$Histogram[data, "Linear", "LogCount"]
specifies linear for the x-axis and log for the y. $\endgroup$