Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2012

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

Search the Archive

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?




  • Prev by Date: Re: Using CountryData to Get US Population by State
  • Next by Date: Re: Using CountryData to Get US Population by State
  • Previous by thread: Re: Sum of Products
  • Next by thread: Re: Histogram ignores 'bspec' (bin spec) ??