MathGroup Archive 2010

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

Search the Archive

Re: Histogram

  • To: mathgroup at smc.vnet.net
  • Subject: [mg108762] Re: Histogram
  • From: Sseziwa Mukasa <mukasa at jeol.com>
  • Date: Tue, 30 Mar 2010 05:03:27 -0500 (EST)

On Mar 29, 2010, at 6:21 AM, Jim Lambaugh wrote:

> Hi
>
> I wish to make a histogram, but the size of each bin should be
> infinitely small. So I am actually looking for something that plots
> the coordinate (x,y), where x is the value of something and y is the
> number of times the value x appears in the list.
>
> I tried BarChart and Histogram, but no luck. You guys have any ideas?


Here's a starting point

BarChart[#[[All, 2]], ChartLabels -> #[[All, 1]]] &[{First[#], Length 
[#]} & /@
    Split[Sort[data]]]

Regards,
	Ssezi


  • Prev by Date: if with two conditions
  • Next by Date: Re: priorities between @, @@ and //
  • Previous by thread: Re: Histogram
  • Next by thread: Re: Histogram