|
[Date Index]
[Thread Index]
[Author Index]
Re: getting data for Histogram
- To: mathgroup at smc.vnet.net
- Subject: [mg80458] Re: [mg80428] getting data for Histogram
- From: Sseziwa Mukasa <mukasa at jeol.com>
- Date: Thu, 23 Aug 2007 01:00:49 -0400 (EDT)
- References: <200708220844.EAA08708@smc.vnet.net>
On Aug 22, 2007, at 4:44 AM, Arkadiusz.Majka at gmail.com 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`
<<Statistics`NormalDistribution`
obj = Histogram[RandomArray[NormalDistribution[], 100]];
bins=Cases[obj, Rectangle[__], Infinity]/.Rectangle[{l_, b_}, {r_,
t_}] -> {l, r}
Regards,
Ssezi
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
|