Re: Histogram omits data points & BUG REPORT
- To: mathgroup at smc.vnet.net
- Subject: [mg118970] Re: Histogram omits data points & BUG REPORT
- From: Syd Geraghty <sydgeraghty at me.com>
- Date: Wed, 18 May 2011 07:16:06 -0400 (EDT)
Hi Barrie,
Take your Manipulate one stage further by introducing a "width" multiple:
Manipulate[
Histogram[{-3, -1, -1, -1, 1, 1, 1, 3}, {width w},
PlotRange -> {{-5, 5}, {0, 4}}],
{w, 0.02, 0.08, 0.01},
{width, 4, 16, 4}]
and play with "width"s even & odd and a few PlotRange variations and you will see that there is definitely a bug in Histogram.
I have also addressed this to Technical Support at WRI.
Cheers .... Syd
Syd Geraghty B.Sc, M.Sc.
sydgeraghty at mac.com
Mathematica 8.0 for Mac OS X x86 (64-bit) (February 23, 2011)
ReleaseID: 8.0.1.0 (2063982, 2063639)
MacOS X V 10.6.7 Snow Leopard
MacBook Pro 2.33 GHz Intel Core 2 Duo 2GB RAM
On May 16, 2011, at 12:33 AM, Barrie Stokes wrote:
> 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
>
>