Re: Legends in GraphicsGrid
- To: mathgroup at smc.vnet.net
- Subject: [mg97103] Re: Legends in GraphicsGrid
- From: "Sjoerd C. de Vries" <sjoerd.c.devries at gmail.com>
- Date: Thu, 5 Mar 2009 04:55:54 -0500 (EST)
- References: <golqst$q9t$1@smc.vnet.net>
Padding is often a struggle for me as well. In this case Grid seems to
be working better than GraphicsGrid.
Cheers -- Sjoerd
On Mar 4, 2:06 pm, "M.Roellig" <markus.roel... at googlemail.com> wrote:
> 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