Histogram ignores 'bspec' (bin spec) ??
- To: mathgroup at smc.vnet.net
- Subject: [mg126753] Histogram ignores 'bspec' (bin spec) ??
- From: James Stein <mathgroup at stein.org>
- Date: Mon, 4 Jun 2012 04:20:35 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
I would like to plot a histogram with a fixed number of bars, e.g. ten bars.
Consider this code:
SeedRandom [ 1 ] ;
foo = RandomVariate [ NormalDistribution [ 0, 1], 1000 ] ;
baz = Table [ Histogram [ foo, k ], { k, 8, 15 } ] ;
1 == Length [ DeleteDuplicates [ baz ] ]
The last line prints 'True', confirmed by visual inspection of baz which
reveals eight identical histograms, each containing 13 bins. What do I fail
to understand here?