MathGroup Archive 2001

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

Search the Archive

Aligning subplots nicely?

  • To: mathgroup at
  • Subject: [mg31659] Aligning subplots nicely?
  • From: Sampo Smolander <shsmolan at>
  • Date: Fri, 23 Nov 2001 05:46:35 -0500 (EST)
  • Organization: Helsinki University of Technology
  • Sender: owner-wri-mathgroup at

Is there a handy way to aling subplots nicely?

For example, if I have

  {p1, p2} = {Plot[x^2, {x, 0, 1}], Plot[x^2, {x, 0, 0.1}]}

and then I do

  Show[GraphicsArray[{p1, p2}]]

Then the two subplots are of different size (because in p2 the
numbers in y-axis are longer, and take relatively more or
the rectangle that GraphicsArray assignes to the subplot),
and the result looks ugly.

I found out that I can do this:

Show[Graphics[{Rectangle[{0, 0}, {1, 1}, kk1], 
               Rectangle[{1, -0.02}, {2.18, 1.05}, kk2]}]];

It looks relatively nice (at leat in certain size),
but I need lots of iterative handwork to tune the
rectangle parameters.

Any better ways?

Sampo Smolander, shsmolan at,
............"the more bottles we use, the closer we ought to come"
................ D.J. Griffiths: Introduction to Quantum Mechanics  

  • Prev by Date: KroneckerDelta in sum
  • Next by Date: notebook2e.sty has conflicts with amsmath.sty...
  • Previous by thread: Re: KroneckerDelta in sum
  • Next by thread: Re: Aligning subplots nicely?