MathGroup Archive 2011

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

Search the Archive

Re: Histogram omits data points

  • To: mathgroup at smc.vnet.net
  • Subject: [mg118919] Re: Histogram omits data points
  • From: Barrie Stokes <Barrie.Stokes at newcastle.edu.au>
  • Date: Mon, 16 May 2011 03:33:27 -0400 (EDT)

Hi Yen Lee

Intrigued, I wrote the following Manipulate

Manipulate[ 
    Histogram[{-3, -1, -1, -1, 1, 1, 1, 3}, {w}, 
  PlotRange -> {All, All}], {w, 0.01, 0.5, 0.01} ]

Stepping w from 0.01 in the 0.01 increments shows that *only for 0.05* does this problem occur with your data. Hmmm.

Cheers

Barrie

>>> On 13/05/2011 at 8:25 pm, in message <201105131025.GAA27948 at smc.vnet.net>, Yen
Lee Loh <yenleeloh1 at gmail.com> wrote:
> Dear all,
> 
> With Mathematica version "8.0 for Linux x86 (64-bit) (February 23, 2011)",
> the following command gives only three bars at horizontal positions -3, -1,
> and 1; the bar at 3 is missing:
> 
>     Histogram[{-3, -1, -1, -1, 1, 1, 1, 3}, {0.05}, PlotRange -> All]
> 
> The following still gives the same problem.
> 
>     Histogram[{-3, -1, -1, -1, 1, 1, 1, 3}, {0.05}, PlotRange -> {{-4, 4},
> All}]
> 
> However, the following command, with a larger bin spacing, is ok:
> 
>     Histogram[{-3, -1, -1, -1, 1, 1, 1, 3}, {0.1}, PlotRange -> All]
> 
> Just a warning for unwary users.  -Yen Lee



  • Prev by Date: Re: Combinations and Counting
  • Next by Date: Re: Combinations and Counting
  • Previous by thread: Histogram omits data points
  • Next by thread: Problem with AbsoluteOptions and FullGraphics