MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: getting data for Histogram

  • To: mathgroup at
  • Subject: [mg80458] Re: [mg80428] getting data for Histogram
  • From: Sseziwa Mukasa <mukasa at>
  • Date: Thu, 23 Aug 2007 01:00:49 -0400 (EDT)
  • References: <>

On Aug 22, 2007, at 4:44 AM, Arkadiusz.Majka at wrote:

> Hi,
> 3 years ago the following problem was given
> "I assume that in the process of creating a Histogram plot,
> Mathematica must be calculating a list of BinCounts -- but how can  
> I get at that
> list immediately after making and displaying the histogram? "
> Do you know the answer?

In version 6 BinCounts is now an function.

Otherwise the result of Histogram is a Graphics object, the bins can  
be obtained from the parameters to the Rectangle expressions in that  
that object which can be obtained as follows:

<< Graphics`Graphics`
obj = Histogram[RandomArray[NormalDistribution[], 100]];
bins=Cases[obj, Rectangle[__], Infinity]/.Rectangle[{l_, b_}, {r_,  
t_}] -> {l, r}



  • Prev by Date: Re: Redefine Arg to return a value from 0 to 2 pi
  • Next by Date: Re: ParametricPlot3D from 5.2 to 6.0
  • Previous by thread: RE: getting data for Histogram
  • Next by thread: Re: getting data for Histogram