MathGroup Archive 2009

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

Search the Archive

Re: AbsoluteOptions for BarChart

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

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

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


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

Bob Hanlon

---- Don <donabc at> 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