1
$\begingroup$

I have a large array of real (positive and negative) numbers and I want to plot the histogram of it. I can use

Histogram[data, "Log", PlotRange->All]

but this gives me log scale only in X-axis. How would you get log scale on both axis for a histogram? I have heard that Mathematica 8 has added this feature, but I am using Mathematica 7 right now.

Moreover, say I just want Log scale on Y-axis. Is it possible too?

Thanks!

$\endgroup$
4
$\begingroup$

Not quite sure if this also works in Mathematica 7 since I use version 8/9 but try the following:

Histogram[Range@100, {"Log", 10}, "LogCount"]

This results in

result

Related to this.

$\endgroup$
  • $\begingroup$ With this code it gives me an error message: "Expected a list of tick specifications". Though I don't get this error message for smaller data sets! $\endgroup$ – dbm May 1 '13 at 2:52

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.