Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

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

Search the Archive

Legends in GraphicsGrid

  • To: mathgroup at smc.vnet.net
  • Subject: [mg97046] Legends in GraphicsGrid
  • From: "M.Roellig" <markus.roellig at googlemail.com>
  • Date: Wed, 4 Mar 2009 07:08:56 -0500 (EST)

Hello Group,

I am again struggling with inserting legends into plots.I need to
automate the plotting of many GraphicsGrids with some automated legend
control. Usually I use a customized approach via Epilog/Inset but I
need to use LogLogPlots and positioning and scaling within them is not
very straight forward to me.

Using the built in PlotLegends Package I somewhat loose control over
my plots. The legend package introduces some invisible plot margins I
cannot get rid of:

Compare:

(*with legends*)
GraphicsGrid[
 Partition[
  Table[Plot[i, {x, 0, 100}, ImageSize -> 200, PlotLegend -> {"1"},
    LegendShadow -> False, LegendPosition -> {0, 0},
    LegendSize -> 0.5, ImageMargins -> None, ImagePadding -> 0], {i,
    1, 4}], 2], Spacings -> 0., Frame -> All]
(* without legends *)
GraphicsGrid[
 Partition[
  Table[Plot[i, {x, 0, 100}, ImageSize -> 200, ImageMargins -> None,
    ImagePadding -> 0], {i, 1, 4}], 2], Spacings -> 0., Frame -> All]

Is there a way to keep the legend fully wihtin the plot without adding
some invisible wasted space?

I appreciate any hints,

Markus








  • Prev by Date: GraphComplement doesn't work in 7.0
  • Next by Date: custom coordinate systems in mathematica Help!
  • Previous by thread: Re: GraphComplement doesn't work in 7.0
  • Next by thread: Re: Legends in GraphicsGrid