3

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 ?

Pschoofs
  • 429
  • 2
  • 11

0 Answers0