Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2001
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2001

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

Search the Archive

Re: two y-axis

  • To: mathgroup at smc.vnet.net
  • Subject: [mg27284] Re: [mg27288] two y-axis
  • From: Tomas Garza <tgarza01 at prodigy.net.mx>
  • Date: Sat, 17 Feb 2001 03:31:01 -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] [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: How can I find the closest distance between a specified point and an interpolation curve?
  • Previous by thread: two y-axis
  • Next by thread: Re: two y-axis