MathGroup Archive 2007

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

Search the Archive

BarChart and Ticks problem.

  • To: mathgroup at
  • Subject: [mg73179] BarChart and Ticks problem.
  • From: luhaorice at
  • Date: Tue, 6 Feb 2007 03:39:08 -0500 (EST)

Hello, All
I have a problem with BarChart and Ticks.

sid = N[Table[Sin[Pi Random[]], {1000}]];
freqtst = BinCounts[sid, {0, 1, 0.02}];
midp = Table[i, {i, 0.02, 1, 0.02}];
BarChart[Transpose[{freqtst, midp}]]
(* The ticks on X axis is correct except crowded*)
Show[%, Ticks -> Automatic]
(*here, I have the wrong X axis ticks.  The range of the ticks is from
0 to 50 which doesn't make any sense because Sin[x] is always less or
equal than 1. *)

ListPlot[Transpose[{midp, freqtst}], Ticks -> Automatic]
(* this gives me the right answer*)

Any suggestions?

  • Prev by Date: Re: Problem with new Mathematica Installation on Linux
  • Next by Date: Integrating SphericalHarmonicY
  • Previous by thread: Re: Point inside polygon
  • Next by thread: Re: BarChart and Ticks problem.