Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2004
*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 2004

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

Search the Archive

Re: plotting two functions on the one graph

  • To: mathgroup at smc.vnet.net
  • Subject: [mg52952] Re: plotting two functions on the one graph
  • From: Bill Rowe <readnewsciv at earthlink.net>
  • Date: Fri, 17 Dec 2004 05:20:23 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

On 12/16/04 at 3:40 AM, fmurphy at nmrc.ie (Frank Murphy) wrote:

>siafra at vaxsa.csied.unisa.it wrote:
>:I'm a student in physics at the University of Salerno, Italy and I'm
>:using Mathematica 3.0 under Win95. My question is : how can I plot
>:two functions f(x), g(x) with the same x range on two different
>:y-axes, say the one for f(x) at left and the one for g(x) at right ?

Use FrameTicks. For example,

Plot[{10*x, 1/x}, {x, 0.1, 1}, Frame -> True, 
   FrameTicks -> {Automatic, Automatic, None, 
                 ({#1, #1/10} & ) /@Range[2., 10, 2.]}]; 

For even greater flexibility, take a look at David Park's DrawGraphics package available on his web site
--
To reply via email subtract one hundred and four


  • Prev by Date: Re: plotting two functions on the one graph
  • Next by Date: Scientific Word
  • Previous by thread: Re: plotting two functions on the one graph
  • Next by thread: Re: plotting two functions on the one graph