MathGroup Archive 2002

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

Search the Archive

Re: Bad Alignment of Y Axes

  • To: mathgroup at
  • Subject: [mg37260] Re: [mg37250] Bad Alignment of Y Axes
  • From: BobHanlon at
  • Date: Mon, 21 Oct 2002 02:29:21 -0400 (EDT)
  • Sender: owner-wri-mathgroup at

In a message dated 10/18/2002 6:29:00 AM, ulbrich at writes:

>I have 2 or more separate Plots which have different y but the same x
>At the display and printout, the y axes are not aligned. Even using the
>PlotRegion and ImageSize Options doesn't help. The only way I found
>was to align it manually with the mouse.
>Is there a package that solves the problem?
>The problem is, I have many, many plots to align...
>I use Mathematica on a Windows 2000 PC.

Pad each axis label with a string of blanks that makes both axes 
labels take up the same space.

showplot[plt_] := Show[plt,
    Ticks -> {Automatic,
        Prepend[(Ticks /. 
          {0.001, StringJoin[Table[" ", {5}]]}]},
    DisplayFunction -> $DisplayFunction]

p1 = Plot[Sin[x], {x, 0, 10}, 
      DisplayFunction -> Identity];

p2 = Plot[1000Sin[x], {x, 0, 10}, 
      DisplayFunction -> Identity];



Bob Hanlon

  • Prev by Date: Re: Mathematica 4.2: Problem with online help.
  • Next by Date: Re: Checking the Results of NDSolve
  • Previous by thread: Re: Bad Alignment of Y Axes
  • Next by thread: RE: Bad Alignment of Y Axes