MathGroup Archive 2004

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

Search the Archive

Re: Need help with HISTOGRAM plotting

  • To: mathgroup at smc.vnet.net
  • Subject: [mg51399] Re: [mg51388] Need help with HISTOGRAM plotting
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Sat, 16 Oct 2004 04:20:31 -0400 (EDT)
  • Reply-to: hanlonr at cox.net
  • Sender: owner-wri-mathgroup at wolfram.com

data={97,90,91,98,93,100,90,98,91,93,98,93,97,93,80,95,93,99,96,80,98,
85,94,98,96,88,93,92,88,97};

Needs["Graphics`Graphics`"];

Histogram[data];

It is not clear how you want to handle values on the interval boundaries.

Histogram[data, 
    HistogramCategories->Table[k,{k,80,100,4}],
    Ticks->IntervalCenters];

Histogram[data, 
    HistogramCategories->Table[k,{k,80,101,4+10^-6}],
    Ticks->IntervalCenters];


Bob Hanlon

> 
> From: mediocretes at gmail.com (Peet)
To: mathgroup at smc.vnet.net
> Date: 2004/10/15 Fri AM 02:48:22 EDT
> To: mathgroup at smc.vnet.net
> Subject: [mg51399] [mg51388] Need help with HISTOGRAM plotting
> 
> I've only been playing around with the trial version of Mathematica
> for a few hours but I can't figure out how the heck to plot a
> histogram. I have a list of data (below) that I want to plot. The
> range is 80 to 100 and I want 5 bins, across 4 points each. I feel
> that this is a pretty straightforward thing to do, but I can't even
> plot a single histogram, even when I reproduce the samples that they
> give in the math book word for word. The data is below, any help would
> be greatly appreciated.
> 
> 
97,90,91,98,93,100,90,98,91,93,98,93,97,93,80,95,93,99,96,80,98,85,94,9
8,96,88,93,92,88,97,90,90
> 
> 


  • Prev by Date: Re: Re: Outer product in mathematica
  • Next by Date: Re: Mathematica Symbolic Toolbox for MATLAB--Version 2.0
  • Previous by thread: Re: Need help with HISTOGRAM plotting
  • Next by thread: RandomReplacement package