MathGroup Archive 2000

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

Search the Archive

BarChart Bug?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg23587] BarChart Bug?
  • From: Bjorn Leonardz <cBLZ at hhs.se>
  • Date: Sun, 21 May 2000 18:12:54 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Hallo MathGroup,

I want to display probabilities and cumulative probabilities for a discrete
random variable (integer valued) in the same bar chart.

In 'My example' (see below), the height of the vertical axis gets chopped
at .35, so the cumprobs do not get properly graphed. When I make two
separate charts they are both OK.

At the same time the 'Simple test example' works well.

New trial, this time with the option  PlotRange->{0,1} added.
Now it works.

What went wrong? The Help Browser says nothing about this in the BarChart
article. Why doesn't BarChart[] calculate the PlotRange properly in 'My
example'?

Regards,
Bjorn Leonardz

-----------------------------------------------

<< Graphics`Graphics`

** Simple test example
testprobs = {.1, .2, .4, .2, .1};
testcumprobs = {.1, .3, .7, .9, 1.};
BarChart[testprobs, testcumprobs]

** My example
probs = {1, 3, 6, 9, 11, 13, 14, 13, 11, 9, 6, 3, 1}/100.
cumprobs = {1, 4, 10, 19, 30, 43, 57, 70, 81, 90, 96, 99, 100}/100.
BarChart[probs]
BarChart[cumprobs]
BarChart[probs, cumprobs]
BarChart[probs, cumprobs, PlotRange->{0,1}]




  • Prev by Date: Open &Close without setting?
  • Next by Date: Re: Mathematica course
  • Previous by thread: Open &Close without setting?
  • Next by thread: Re: BarChart Bug?