Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #2448
| From | Syd Geraghty <sydgeraghty@me.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Histogram omits data points & BUG REPORT |
| Date | 2011-05-18 11:16 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <ir09pp$217$1@smc.vnet.net> (permalink) |
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@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@smc.vnet.net>, Yen
> Lee Loh <yenleeloh1@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
>
>
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: Histogram omits data points & BUG REPORT Syd Geraghty <sydgeraghty@me.com> - 2011-05-18 11:16 +0000
csiph-web