MathGroup Archive 2009

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

Search the Archive

Re: BarChart in v. 7

  • To: mathgroup at smc.vnet.net
  • Subject: [mg98328] Re: BarChart in v. 7
  • From: "Sjoerd C. de Vries" <sjoerd.c.devries at gmail.com>
  • Date: Mon, 6 Apr 2009 05:01:25 -0400 (EDT)
  • References: <gr4jmk$acd$1@smc.vnet.net>

Hi Julian,

What's difficult in

BarChart[{{1, 2, 3}, {1, 2, 3}}\[Transpose],
 ChartLabels -> {{"2007", "2008", "2009"}, {"mac", "pc"}}]

or

BarChart[{{1, 2, 3}, {1, 2, 3}}\[Transpose],
 ChartLabels -> {{"2007", "2008", "2009"}, None}]

?

Cheers -- Sjoerd

On Apr 3, 11:08 am, Julian Aguirre <julian.agui... at ehu.es> wrote:
> I have found that BarChart has changed quite a lot in v7. In v6,
> BarChart[{1,2,3},{1,2,3}] produces a chart with six bars, grouped
> 1,1,2,2,3,3. In v7, the correct syntax is BarChart[{{1,2,3},{1,2,3}}],
> and gives a chart also with six bars but grouped 1,2,3,1,2,3. I would
> like to revert to the v6 behaviour. It can be done with BarChart
> [Transpose[{{1,2,3},{1,2,3}}], but labelling the chart with a label
> under each group of two data (that is, one label under the columns
> 1,1,...) becomes a pain, specially for large sets of data. Do you know
> of a simpler method other than reverting to v6?
>
> Thanks in advance
>
> Juli=E1n



  • Prev by Date: Re: Plot3D, show and text
  • Next by Date: Re: Plot3D, show and text
  • Previous by thread: BarChart in v. 7
  • Next by thread: passing an array variable as a file name string to FindList