Re: Histogram omits data points & BUG REPORT
- To: mathgroup at smc.vnet.net
- Subject: [mg118972] Re: Histogram omits data points & BUG REPORT
- From: Barrie Stokes <Barrie.Stokes at newcastle.edu.au>
- Date: Wed, 18 May 2011 07:16:27 -0400 (EDT)
Hi Syd
Nice one!
Experimenting quickly with your extra width parameter, I find that the bar/column at +3 disappears with w=0.05 and width = 6 and 12, but not 18 (didn't try higher values.)
There is definitely an interesting little interaction bug in Histogram.
Cheers
Barrie
>>> On 18/05/2011 at 10:23 am, in message
<57452B0B-2A1F-4033-8E6C-22B5035D5E94 at me.com>, Syd Geraghty
<sydgeraghty at me.com> wrote:
> 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
>>
>>