Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2010

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

Search the Archive

Re: Basic histogram

  • To: mathgroup at smc.vnet.net
  • Subject: [mg109875] Re: [mg109852] Basic histogram
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Thu, 20 May 2010 07:25:09 -0400 (EDT)
  • Reply-to: hanlonr at cox.net

$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 at 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      



  • Prev by Date: Re: Evaluate to...
  • Next by Date: Re: an attempt at solid modeling with Mathematica
  • Previous by thread: Re: Basic histogram
  • Next by thread: Orthogonal Distance Regression available?