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
- Follow-Ups:
- Re: Legends in GraphicsGrid
- From: peter <plindsay.0@gmail.com>
- Re: Legends in GraphicsGrid