MathGroup Archive 2009

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

Search the Archive

Re: two y-axes with different scaling

  • To: mathgroup at smc.vnet.net
  • Subject: [mg95899] Re: two y-axes with different scaling
  • From: dimitris <dimmechan at yahoo.com>
  • Date: Thu, 29 Jan 2009 05:57:05 -0500 (EST)
  • References: <glpgf6$ljf$1@smc.vnet.net>

On 28 =C9=E1=ED, 13:44, Joerg <scha... at biologie.hu-berlin.de> wrote:
> Hi,
>
> I want to combine two 2-D plots into one.
> However, I want to have two different
> y-axes. One on the left and one two the right,
> with different ticklabels, respectively.
> How do I do that? I couln't find any
> example in the help files.
>
> Thanks,
>
> joerg

Something like...

Plot[{Sin[x], Cos[x]}, {x, -Pi, Pi},
 Frame -> {True, True, False, True}, Axes -> False,
   FrameLabel -> {"x axis", "y1 axis", None, "y2 axis"},
 FrameStyle -> {Automatic, Green, None, Orange},
   FrameTicks -> {Range[-2*Pi, 2*Pi, Pi/2], Range[-1, 1, 0.5], None,
   Range[-1, 1, 0.5]}]

???

Dimitris


  • Prev by Date: Re: Printing (v7)
  • Next by Date: Re: moment generating function for gaussian and lognormal distribution
  • Previous by thread: Re: Re: Re: two y-axes with different scaling
  • Next by thread: Re: two y-axes with different scaling