Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2001
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2001

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

Search the Archive

Aligning subplots nicely?

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

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 cc.hut.fi, http://www.hut.fi/u/shsmolan/
............"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?