MathGroup Archive 2009

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

Search the Archive

Re: AbsoluteOptions for BarChart

  • To: mathgroup at smc.vnet.net
  • Subject: [mg101448] Re: [mg101436] AbsoluteOptions for BarChart
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Tue, 7 Jul 2009 07:50:46 -0400 (EDT)
  • Reply-to: hanlonr at cox.net

bc = BarChart[{{16, 8}, {5, 6}}]

rgb = Cases[bc, RGBColor[__], Infinity] // Union

{RGBColor[0.733333,1.,0.833722],RGBColor[0.798413,0.82472,0.968322]}

Graphics[{rgb[[2]], Disk[]}]


Bob Hanlon

---- Don <donabc at comcast.net> wrote: 

=============
When I use

BarChart[{{16, 8}, {5, 6}}]

I get two colors for each group of data, a blue and
a green.

I am trying to find the RGB values of the blue
that is being used in the bar chart.

AbsoluteOptions[BarChart[{{16, 8}, {5, 6}}]] // TableForm
gives for the value of the ColorOutput option
the value "Automatic"

Is there anyway to know what the actual RGB values are that are being used? I thought AbsoluteOptions was
the right function to get this information, but it's not
working for me. Thank you.




  • Prev by Date: Re: AbsoluteOptions for BarChart
  • Next by Date: Re: Using Lists with Mapping
  • Previous by thread: Re: AbsoluteOptions for BarChart
  • Next by thread: Using Lists with Mapping