Re: Histogram
- To: mathgroup at smc.vnet.net
- Subject: [mg112692] Re: Histogram
- From: telefunkenvf14 <rgorka at gmail.com>
- Date: Mon, 27 Sep 2010 05:46:41 -0400 (EDT)
- References: <i7mq5c$p0q$1@smc.vnet.net>
On Sep 26, 1:45 am, Themis Matsoukas <tmatsou... at me.com> wrote:
> How can I access the {x,y} values that are plotted by Histogram?
>
> Themis
Modified from the documentation:
a = RandomReal[NormalDistribution[0, 1], 200];
Histogram[a]
By default, Histogram[] will automatically decide bin widths for you;
this particular example gave bin widths of 1/2. Now use functions such
as:
BinCounts[a, 1/2]
BinLists[a, 1/2]
...which hopefully gets you close to what you wanted. (I'm guessing
this will be much easier in version 8...)
-RG