MathGroup Archive 2001

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

Search the Archive

Re: two y-axis

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:

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>
To: mathgroup at
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

  • 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