Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

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

Search the Archive

Re: bar chart

  • To: mathgroup at smc.vnet.net
  • Subject: [mg93412] Re: [mg93372] bar chart
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Thu, 6 Nov 2008 04:08:11 -0500 (EST)
  • Reply-to: hanlonr at cox.net

Needs["BarCharts`"]

n = 10;

data = Table[PDF[BinomialDistribution[n, 1/2], x], {x, 0, n}];

bStyle = Table[LightBlue, {n + 1}];

bStyle[[7]] = Magenta;

BarChart[data, BarLabels -> Range[0, n], BarStyle -> bStyle]


Bob Hanlon


=============
Hello,
I liketo draw a bar chart of a binomial distribution (that alone is 
easy) but I want to colour some of the columns different, for example to 
show confidence intervals. How could this be done?

Regards
Joerg Schroeder


--

Bob Hanlon



  • Prev by Date: Re: Tooltip ans Sound - 2nd posting
  • Next by Date: Re: Eliminating common factors?
  • Previous by thread: bar chart
  • Next by thread: NIntegrate[UnitStep[...]PDF[...],{x,...}] hard to integrate