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

MathGroup Archive 2007

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

Search the Archive

Re: Trying to create a clustered StackedBarChart

  • To: mathgroup at smc.vnet.net
  • Subject: [mg83697] Re: Trying to create a clustered StackedBarChart
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Wed, 28 Nov 2007 05:41:46 -0500 (EST)
  • References: <figu8h$fha$1@smc.vnet.net>

Hi,

Needs["BarCharts`"]
gr = StackedBarChart[{2, 2, 0, 4, 5}, {0.5, 0.5, 0, 0.5, 0.5},
   BarStyle -> {Yellow, Black},
   Ticks -> {{{1.5, "1, 2"}, {4.5, "3, 4"}}, Automatic}]

??

Regards
   Jens

tomfabtastic at hotmail.com wrote:
>  Hello,
> 
> The code below creates a stacked bar chart. However, I would like the
> columns to be clustered in pairs - so instead of reading a,2,3,4
> across the x-axis, it should read 1,2 with two columns at 1 and two
> columns at 2. I am using mathematica v6.
> 
> Needs["BarCharts`"]
> StackedBarChart[{2, 2, 4, 5}, {0.5, 0.5, 0.5, 0.5},
>  BarStyle -> {Yellow, Black}]
> 
> Thanks,
> Tom
> 


  • Prev by Date: Re: Create random binary images
  • Next by Date: Re: ListContourPlot on a torus
  • Previous by thread: Trying to create a clustered StackedBarChart
  • Next by thread: Re: Trying to create a clustered StackedBarChart