From: Canopus56 on
How do I plot a basic histogram from a list of values. This simple list will not plot -

arrData3 = {1067., 2874., 2306., 2828., 2989., 838. , 1302., 2762.,
682., 2108., 2902., 3001., 1997., 1269., 3110., 2496., 1911., 2266.,
2244., 1074., 567., 754., 2987., 1893., 3809., 419., 745. , 1791.,
578., 1156., 777., 1669., 669., 1853., 2704., 3776., 2389., 57 11.}

Histogram[arrData3, 500]

The result displays a blue box with the word "Histogram" in it, followed by the data, with no graph.

Thanks, Kurt

From: Bill Rowe on
On 5/19/10 at 8:15 PM, canopus56(a)yahoo.com (Canopus56) wrote:

>How do I plot a basic histogram from a list of values. This simple
>list will not plot -

>arrData3 = {1067., 2874., 2306., 2828., 2989., 838. , 1302., 2762.,
>682., 2108., 2902., 3001., 1997., 1269., 3110., 2496., 1911., 2266.,
>2244., 1074., 567., 754., 2987., 1893., 3809., 419., 745. , 1791.,
>578., 1156., 777., 1669., 669., 1853., 2704., 3776., 2389., 57 11.}

>Histogram[arrData3, 500]

>The result displays a blue box with the word "Histogram" in it,
>followed by the data, with no graph.

If I copy your data and paste it into Mathematica then do
Histogram[arrData3,500] I see a plot, although not a very
interesting histogram given that choice of a bin width. I get a
better result when eliminating the space in the last entry and
simply doing Histogram[arrData3]. And this is with

In[7]:= $Version

Out[7]= 7.0 for Mac OS X x86 (64-bit) (February 19, 2009)


From: Bob Hanlon on

$Version

7.0 for Mac OS X x86 (64-bit) (February 19, 2009)

arrData3 = {1067., 2874., 2306., 2828., 2989., 838., 1302., 2762., 682.,
2108., 2902., 3001., 1997., 1269., 3110., 2496., 1911., 2266., 2244.,
1074., 567., 754., 2987., 1893., 3809., 419., 745., 1791., 578., 1156.,
777., 1669., 669., 1853., 2704., 3776., 2389., 5711.};

The following plots on my system; however, it is mostly spikes rather than bins since you asked for 500 bins.

Histogram[arrData3, 500]

Presumably you wanted the bin widths to be 500 which is done by

Histogram[arrData3, {500}]


Bob Hanlon

---- Canopus56 <canopus56(a)yahoo.com> wrote:

=============
How do I plot a basic histogram from a list of values. This simple list will not plot -

arrData3 = {1067., 2874., 2306., 2828., 2989., 838. , 1302., 2762.,
682., 2108., 2902., 3001., 1997., 1269., 3110., 2496., 1911., 2266.,
2244., 1074., 567., 754., 2987., 1893., 3809., 419., 745. , 1791.,
578., 1156., 777., 1669., 669., 1853., 2704., 3776., 2389., 57 11.}

Histogram[arrData3, 500]

The result displays a blue box with the word "Histogram" in it, followed by the data, with no graph.

Thanks, Kurt


From: Michael Stern on
Ditto. Same results as Bill describes, for several versions of Mathematica on the Mac.


On May 20, 2010, at 6:39 AM, Bill Rowe wrote:

> On 5/19/10 at 8:15 PM, canopus56(a)yahoo.com (Canopus56) wrote:
>
>> How do I plot a basic histogram from a list of values. This simple
>> list will not plot -
>
>> arrData3 == {1067., 2874., 2306., 2828., 2989., 838. , 1302., 2762.,
>> 682., 2108., 2902., 3001., 1997., 1269., 3110., 2496., 1911., 2266.,
>> 2244., 1074., 567., 754., 2987., 1893., 3809., 419., 745. , 1791.,
>> 578., 1156., 777., 1669., 669., 1853., 2704., 3776., 2389., 57 11.}
>
>> Histogram[arrData3, 500]
>
>> The result displays a blue box with the word "Histogram" in it,
>> followed by the data, with no graph.
>
> If I copy your data and paste it into Mathematica then do
> Histogram[arrData3,500] I see a plot, although not a very
> interesting histogram given that choice of a bin width. I get a
> better result when eliminating the space in the last entry and
> simply doing Histogram[arrData3]. And this is with
>
> In[7]:== $Version
>
> Out[7]== 7.0 for Mac OS X x86 (64-bit) (February 19, 2009)
>
>