Re: How to lay out a grid of plots with frame labels, but no spaces
- To: mathgroup at smc.vnet.net
- Subject: [mg108124] Re: How to lay out a grid of plots with frame labels, but no spaces
- From: Ben Shepherd <bjashepherd at gmail.com>
- Date: Mon, 8 Mar 2010 06:41:14 -0500 (EST)
- References: <hl37rn$efd$1@smc.vnet.net>
On 12 Feb, 09:43, Mike Bryniarski <melondi... at gmail.com> wrote:
> I want to show a several plots in a grid but only show tick labels and axes labels on the outermost edges of the grid (all plots on a given
> row or column have the same axis along theirsharededge).Also there
> must not be any space between the plots. I can get the plots in a grid
> without gaps easily enough. here is a simple example:
>
> m = 3;
> p = Table[
> Plot[x^(i/j), {x, -i, i}, PlotRange -> {{-i, i}, {-j, j}},
> AspectRatio -> 1, Frame -> True,Axes-> False,
> FrameTicks -> {{If[i == 1, All, None], If[i == m, All, No=
ne]},
> {If[j == m, All, None], If[j == 1, All, None]}},
Yes - I want to do this too! StackedGraphicsArray used to work, but it
hasn't been updated since 2004. Surely there must be an easy way to do
this in Mathematica 7...
ben
> FrameLabel -> {If[j == m, "Time", None], If[i == 1, "Popu=
lation",
> None]},
> ImagePadding -> Automatic],
> {j, m}, {i, m}];
> GraphicsGrid[p, Spacings -> 0]
>
> But the "ImagePadding -> None" cuts offaxestick labels. I can
> restore them by getting rid of the "ImagePadding -> None" but that
> messes up the spacing. How would I go about showing the frame tick
> labels while keeping the graphics grid gap free? The same goes for the
> frame labels.
>
> Thanks
> -Mike