MathGroup Archive 1999

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

Search the Archive

Re: GraphicsArray and alignment of graphs

  • To: mathgroup at
  • Subject: [mg21288] Re: GraphicsArray and alignment of graphs
  • From: Alan Lewis <alanlewis at>
  • Date: Tue, 21 Dec 1999 03:47:08 -0500 (EST)
  • References: <83a80t$>
  • Sender: owner-wri-mathgroup at

You could start with, say,  

fig1 = Plot[x, {x, 0, 10}, Axes->{True,False}]
fig2 = Plot[x^4, {x, 0, 10},Axes->{True,False}]
Show[GraphicsArray[{{fig1}, {fig2}}],Frame->True]

which looks aligned to me. And then try to build from there,
adding elements that don't destroy the alignment.
For example, you could use the Text[expr,coords] primitives to
write the (now missing) y axis coordinates 
to both graphs. Kind of a pain, but might solve your


Thomas Bohl wrote:
> Dear Mathematica Experts,
> I have got a problem concerning "GraphicsArray and alignment of graphs".
> The problem is that I could not figure out, how to align horizontally the
> frames of two graphs with identical x-axis (scale), but different y-axis
> (scale) in a convenient way.
> To illustrate the problem:
> fig1 = Plot[x, {x, 0, 10}, Frame->True]
> fig2 = Plot[x^4, {x, 0, 10}, Frame->True]
> Show[GraphicsArray[{{fig1}, {fig2}}]]
> The two frames are not aligned horizontally.
> I would like to have both frames aligned horizontally. This is not
> possible with "Align Selected Graphics". I have searched the mathematica
> newsgroup, the site of WRI and just came across the same problem posed
> about five years ago, and then several times again, without finding a
> satisfying answer.
> Somebody proposed to apply  Rectangle[Scaled[]... to one of the figures
> until they align. However, this is quite a tedious procedure, especially
> if there are several graphs to align.
> I think it is quite common in some sciences to make this kind of aligned
> plots, showing for example data & fit in one graph and the residuals in
> another or showing a contourplot in one graph and a projection in another.
> Please let me know, how to get around this problem (still using
> Mathematica and not exporting the data for another software).
> Kind regards,
> Thomas Bohl.

  • Prev by Date: Re: Dropping terms in a complex expression
  • Next by Date: Re: Re: Ticker Tape/Theater Marquee Display?
  • Previous by thread: Re: GraphicsArray and alignment of graphs
  • Next by thread: Dropping terms in a complex expression