MathGroup Archive 2009

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

Search the Archive

Re: Precise control of horizontal ticks with BarChart?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg104598] Re: Precise control of horizontal ticks with BarChart?
  • From: Bill Rowe <readnews at sbcglobal.net>
  • Date: Wed, 4 Nov 2009 01:40:00 -0500 (EST)

On 11/3/09 at 2:54 AM, szhorvat at gmail.com (Szabolcs Horv=C3=A1t) wrote:

>I would like to create a histogram-like plot.  I already have the
>frequency data, so I don't need to use the Histogram function
>itself.

>What is the easiest way to do this?

Here is one way that seems simple to me.

data = Tally[RandomInteger[{1, 10}, 100]];

ListPlot[data,
 Epilog -> {Blue, Thickness[.05],
   Line[data /. {a_, b_} :> {{a, 0}, {a, b}}]}, Frame -> True,
 PlotRange -> {-.5, 20}, Axes -> None]




  • Prev by Date: Re: Fit function vs Hand Calculation
  • Next by Date: Re: Fit function vs Hand Calculation
  • Previous by thread: Precise control of horizontal ticks with BarChart?
  • Next by thread: Re: Re: Precise control of horizontal ticks with BarChart?