Re: ShowLegend Qeustion
- To: mathgroup at smc.vnet.net
- Subject: [mg93146] Re: ShowLegend Qeustion
- From: dh <dh at metrohm.ch>
- Date: Wed, 29 Oct 2008 05:47:25 -0500 (EST)
- References: <ge6nhj$lju$1@smc.vnet.net>
Hi Brian,
ShowLegend takes an argument of type Graphics, not GraphicsGrid. To
convert a GraphicsGrid to a Graphics you may wrap GraphicsGrid[..] into
Show.
hope this helps, Daniel
Brian Beckage wrote:
> I was wondering why the figure that results from the code below is
> shifted into the bottom half of the plot area? How can I get this
> figure to be centered vertically with respect to the plot area? Note
> that v1 through v4 and vf1 through vf4 are all ArrayPlots.
>
> Thank you,
> Brian
>
> ShowLegend[
> GraphicsGrid[{{v1, v2, v3, v4}, {vf1, vf2, vf3, vf4}}, ImageSize -> 800]
> , {{
> {Graphics[{gc, Rectangle[{0, 0}]}], Grass},
> {Graphics[{pc, Rectangle[{1, 0}]}], Pines},
> {Graphics[{hc, Rectangle[{1, 0}]}], Hardwoods},
> {Graphics[{sc, Rectangle[{1, 0}]}], Shrubs},
> {Graphics[{dcc, Rectangle[{1, 0}]}], Dwarf Cypress},
> {Graphics[{fvc, Rectangle[{1, 0}]}], Flooded Vegetation},
> {Graphics[{bpc, Rectangle[{1, 0}]}], Brazilian Pepper}
> } , LegendShadow -> None, LegendPosition -> {1, -0.9}}]
>
--
Daniel Huber
Metrohm Ltd.
Oberdorfstr. 68
CH-9100 Herisau
Tel. +41 71 353 8585, Fax +41 71 353 8907
E-Mail:<mailto:dh at metrohm.com>
Internet:<http://www.metrohm.com>