MathGroup Archive 2001

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

Search the Archive

Re: two y-axis

  • To: mathgroup at smc.vnet.net
  • Subject: [mg27284] [mg27284] Re: [mg27288] two y-axis
  • From: Tomas Garza <tgarza01 at prodigy.net.mx>
  • Date: Sun, 18 Feb 2001 02:52:16 -0500 (EST)
  • References: <200102160858.DAA13539@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

I presume you mean two functions on the same graph. If so, you may use the
Frame->True option and use a set of tick definitions for each axis. A
trivial and quite artificial example, where I'm renaming the ticks on the
right-hand y axis:

In[1]:=
Plot[{Sin[x], 5*Sin[x]}, {x, -Pi, Pi}, Frame -> True,
  FrameTicks -> {Automatic, Range[-4, 4],
      Automatic, {{0, "0"}, {-1, "-0.1"}, {-2, "-0.2"}, {-3, "-0.3"}, {-4,
          "-0.4"}, {1, "0.1"}, {2, "0.2"}, {3, "0.3"}, {4, "0.4"}}}]

For the case of lists, there is Graphics`MultipleListPlot`.

Tomas Garza
Mexico City
----- Original Message -----
From: "Bernd Brandt" <bernd at bio.vu.nl>
To: mathgroup at smc.vnet.net
Subject: [mg27284] [mg27284] [mg27288] two y-axis


> Dear group,
>
> Does anyone have code or know how to plot two functions in Mathematica,
each on
> a different y-axis. I haven't found whether it is possible to use to
> y-axes in Plot.
>
>
>
> Regards,
> Bernd
>



  • References:
  • Prev by Date: Re: Limit[ Sign[],x->Infinity ]
  • Next by Date: Re: Problem: a matrix and a box...
  • Previous by thread: Re: two y-axis
  • Next by thread: Re: two y-axis