MathGroup Archive 2008

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

Search the Archive

Re: Aligning two PLots

  • To: mathgroup at smc.vnet.net
  • Subject: [mg94441] Re: [mg94413] Aligning two PLots
  • From: "Scot T. Martin" <smartin at deas.harvard.edu>
  • Date: Sun, 14 Dec 2008 07:32:44 -0500 (EST)
  • References: <200812121155.GAA27978@smc.vnet.net>

Nikolaus, I put something up yesterday that talked about ImagePadding. 
That is what I use to get the effect you need below, in conjunction with 
Column[].

On Fri, 12 Dec 2008, Nikolaus Rath wrote:

> Hello,
>
> I would like to align two plots horizontally, i.e. the tics on the x
> axis should be exactly aligned. Example:
>
> Plot[Sin[x], {x, 0, 3 \[Pi]}]
> Plot[5000 Sin[x], {x, 0, 3 \[Pi]}]
>
> in the output, the x axis of the second plot is more to the right than
> the x-axis of the first plot (due to the wider labels on the y-axis).
>
> Is there a way to align these two plots exactly?
>
> Note that I do not want to have the two functions overlapping in one
> plot, the two graphs should be well separated vertically.
>
>
> Thanks,
>
>
>   -Nikolaus
>
> --
> =C2=BBIt is not worth an intelligent man's time to be in the majority.
>  By definition, there are already enough people to do that.=C2=AB
>                                                         -J.H. Hardy
>
>  PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6  02CF A9AD B7F8 AE4E 425C
>
>


  • Prev by Date: Problem with HoldForm & Unevaluated
  • Next by Date: Re: Quit[] command shuts down frontend, too
  • Previous by thread: Aligning two PLots
  • Next by thread: Re: Aligning two PLots