MathGroup Archive 2003

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

Search the Archive

Re: Aligned GraphicsArray

  • To: mathgroup at
  • Subject: [mg39242] Re: [mg39223] Aligned GraphicsArray
  • From: Tomas Garza <tgarza01 at>
  • Date: Wed, 5 Feb 2003 00:11:30 -0500 (EST)
  • References: <>
  • Sender: owner-wri-mathgroup at

The reason why the graphs seem to be non-aligned is that the tick labels are
of different length (i.e., the plots are aligned; it is the axes that are
not vertically aligned). Viz., 0.9 has three positions, whereas -0.5 has
four. Try, for example,

plots = Table[Plot[Sin[i*x], {x, 1, Pi}, Ticks -> None],
     {i, 1, 3}];
    Partition[plots, 1], GraphicsSpacing -> {1, -0.1}]]

The axes are now aligned as you wish.

One way to deal with the problem is to redefine the ticks on the vertical
axes using strings instead of numbers so that all the tick labels have the
same length.

Tomas Garza
Mexico City
----- Original Message -----
From: "Cyril Fischer" <fischerc at>
To: mathgroup at
Subject: [mg39242] [mg39223] Aligned GraphicsArray

> Hi,
> How can I (vertically) align several Plots (graphs) in the
> GraphicsArray to have y axis in the same "x" position?
> Somehing like
> plots = Table[Plot[Sin[i x], {x, 1, \[Pi]}], {i, 1, 3}];
> Show[GraphicsArray[Partition[plots, 1], GraphicsSpacing -> {1, -0.1}]]
> And how can I impose the AspectRatio of the individual graphs to have
> x axis spanning the whole x resolution and y axis only one third of y
> resolution?
> Thanks,
> Cyril Fischer

  • Prev by Date: Re: Re: Fit or Interpolate
  • Next by Date: Re: Simple Problem ??
  • Previous by thread: Aligned GraphicsArray
  • Next by thread: RE: Aligned GraphicsArray