MathGroup Archive 2007

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

Search the Archive

Legend on BarChart

  • To: mathgroup at smc.vnet.net
  • Subject: [mg81185] Legend on BarChart
  • From: tomfabtastic at hotmail.com
  • Date: Sat, 15 Sep 2007 04:06:05 -0400 (EDT)

Hi,

I'm using version 6 and would like to add a legend to a BarChart.  I
found the below example on this site. It works but produces a raft of
errors :

<< Graphics`Legend`
<< Graphics`Graphics`
ShowLegend[
 BarChart[{1, -3, 4, 5, 2, 3}, {3, 6, 4,
   3}], {{{Hue[0],
    StyleForm["First", FontFamily -> "Times", FontSize -> 12,
     FontWeight -> "Bold"]}, {Hue[0.6],
    StyleForm["Second", FontFamily -> "Times", FontSize -> 12,
     FontWeight -> "Bold"]}}, LegendPosition -> {1.1, -0.5}}]

Is there a better method to add a Legend to a BarChart in version 6 ?

Thanks,
Tom



  • Prev by Date: Re: Previous version features for 2-D and 3-D plots
  • Next by Date: Re: LegendreP error (bug?) in Mathematica
  • Previous by thread: Re: Help: Font problem
  • Next by thread: RE: Legend on BarChart