MathGroup Archive 2008

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

Search the Archive

Re: Formatting Plot Legends

  • To: mathgroup at smc.vnet.net
  • Subject: [mg90629] Re: Formatting Plot Legends
  • From: annetts729 <davidannetts at aapt.net.au>
  • Date: Thu, 17 Jul 2008 05:33:08 -0400 (EDT)
  • References: <g5kiia$8ia$1@smc.vnet.net>

Hi Gregory,

> LegendBorder -> Opacity[0],
> ShadowBackground -> Opacity[0],
> LengendBackground -> Opacity[0],
> LegendPosition -> {-0.8, -0.54},
> LegendTextSpace -> 6,
> LegendSize -> 0.5

You can use Style[] in your legend text without problems.

Modifying an example from the online help

Needs["PlotLegends`"]
ListPlot[Table[{x, f[x]}, {f, {Sin, Cos, Log}}, {x, 0, 10, 0.5}],
 PlotLegend -> {
   Style["Sine", FontFamily -> "Arial", Bold, FontSize -> 12],
   Style["Cosine", FontFamily -> "Arial", Bold, FontSize -> 12],
   Style["Log", FontFamily -> "Arial", Bold, FontSize -> 12]},
 LegendBorder -> Opacity[0], ShadowBackground -> Opacity[0],
 LegendBackground -> Opacity[0], LegendPosition -> {-0.8, -0.54},
 LegendTextSpace -> 6, LegendSize -> 0.5
 ]

I found that this package has always been tedious and have recently
been using Epilog instead of legend.  YMMV but it's easier to combine
colours and indicate what dashed, solid & dotted curves mean.

Regards,

Dave.


  • Prev by Date: Re: Solve[] doesn't
  • Next by Date: Re: Conditional Table Formatting
  • Previous by thread: Re: Formatting Plot Legends
  • Next by thread: Mathematica slide shows