Possible Duplicate:
Mathematica: Retrieving PlotRange from Histogram
I would like to evaluate the AbsoluteOptions of one of my Histogram. In order to make it better-looking, I apply a PlotRange. When one of the boundaries is put to Automatic, an error occurs, and I don't know how to avoid it.
Here is a minimal example :
data = Table[{3 Random[] - 1, 8 Random[] - 4}, {i, 100}];
PlotA = Histogram[Transpose[data][[2]],20, PlotRange -> {{-2, 2.2}, Automatic}]
AbsoluteOptions[PlotA]
and the error returned :
"Value of option PlotRange -> {{-2,2.2},{All,All}} is not All, Full,
Automatic, a positive machine number, or an appropriate list of range
specifications."
When I replace Automatic by fixed boundaries like {0,50}, it works. Yet I thought that my use of the command Automatic was correct. Where's the problem ?
AbsoluteOptions- here is an example I remembered: Effects of single-point and multi-point calls of Point on plot range - it's not the same, but it's perhaps worth pointing out how much can go wrong withAbsoluteOptions. – Jens Jul 26 '12 at 18:51