MathGroup Archive 2010

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

Search the Archive

Re: Histogram

  • To: mathgroup at smc.vnet.net
  • Subject: [mg108739] Re: [mg108718] Histogram
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Mon, 29 Mar 2010 07:19:59 -0500 (EST)
  • Reply-to: hanlonr at cox.net

data = RandomInteger[{0, 9}, 100];

pltData = {#, Count[data, #]} & /@
   Union[data];

ListPlot[pltData,
 Frame -> True,
 Axes -> False,
 Filling -> Bottom,
 FillingStyle ->
  Directive[Blue, Thick],
 PlotRange ->
  {0, Max[pltData[[All, 2]]] + 1}]


Bob Hanlon

---- Jim Lambaugh <lambaugh at gmail.com> 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?

Sincerely,
Jim.



  • Prev by Date: Resolution Time Study
  • Next by Date: Re: priorities between @, @@ and //
  • Previous by thread: Re: Histogram
  • Next by thread: Re: Histogram