MathGroup Archive 1997

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

Search the Archive

Re: Problem/Bug w/ StackedBarChart?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg8900] Re: Problem/Bug w/ StackedBarChart?
  • From: Paul Abbott <paul at physics.uwa.edu.au>
  • Date: Thu, 2 Oct 1997 22:56:53 -0400
  • Organization: University of Western Australia
  • Sender: owner-wri-mathgroup at wolfram.com

Dale wrote:

> I'm having a problem getting Mathematica to generate a specific stacked
> bar chart. Here is the short bit of code:
> 
> <<Graphics`Graphics`
> 
> oldFont = $DefaultFont ;
> $DefaultFont = {"Helvetica", 10} ;
> 
> leftNormal = {8,3,1,0,0,0} ;
> leftLeft = {8,3,0,0,1,0} ;
> leftRight = {8,2,2,0,0,0} ;
> leftScale = {2,3,3,3,0,0} ;
> leftL45 = {8,1,3,0,0,0} ;
> leftL90 = {6,2,3,1,0,0} ;
> leftGlasses = {3,5,6,6,2,1} ;
> 
> myTicks = Transpose[{Range[6], {2,5,10,20,">20","Miss"}}] ;
> 
> leftEyeBar = StackedBarChart[
>         leftNormal, leftLeft, leftRight,
>         leftScale, leftL45, leftL90, leftGlasses,
>         BarStyle -> Automatic,
>         BarOrientation -> Horizontal,
>         Ticks -> {Automatic, myTicks}]
> 
> Now the problem is that Mathematica only plots the first complete bar
> up to 31 -- cutting off the remainder! 

Actually it only _displays_ up to 31.  If you follow your code above
with

  Show[%,PlotRange->All]

(or modify your call to StackedBarChart by including this option) you
will see the entire plot.


Cheers,
	Paul 


____________________________________________________________________ 
Paul Abbott                                   Phone: +61-8-9380-2734
Department of Physics                           Fax: +61-8-9380-1014
The University of Western Australia           
Nedlands WA  6907                     mailto:paul at physics.uwa.edu.au 
AUSTRALIA                             http://www.pd.uwa.edu.au/~paul

            God IS a weakly left-handed dice player
____________________________________________________________________


  • Prev by Date: Re: a[[2]][[3]] = 1 error? why?
  • Next by Date: Subscripts??
  • Previous by thread: Re: prograMing: split a list
  • Next by thread: Subscripts??