MathGroup Archive 2010

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

Search the Archive

How to add a LegendLabel to a Chartlegends in BarChart

  • To: mathgroup at smc.vnet.net
  • Subject: [mg114159] How to add a LegendLabel to a Chartlegends in BarChart
  • From: Julian Aguirre <julian.aguirre at ehu.es>
  • Date: Thu, 25 Nov 2010 07:03:53 -0500 (EST)

Hi,

I would like to add a LegendLabel to the legend produced by
ChartLegends in a BarChart. As a simple example consider

BarChart[{{1, 3}, {2, 4}}, ChartLabels -> {{"1", "2"}, None},
ChartLegends -> {"a", "b"}]

I would like the label "Letters" to appear on top of the "a" and "b",
with no "marker" on the left.

It can be done in a Plot using the PlotLegends package and the option
LegendLabel; but BarChart does not accept the PlotLegend option. I
tried to do it with ShowLegend, but could not get the colors and the
"markers" for the legend right. Any help would be appreciated.

TIA, Julian.


  • Prev by Date: MathLink - Linux - Calling the Kernel from External Program - undefined reference to `shm_open'
  • Next by Date: Re: Efficient search for bounding list elements
  • Previous by thread: Re: MathLink - Linux - Calling the Kernel from External Program - undefined reference to `shm_open'
  • Next by thread: Re: FindMaximum - f is a MathLink function