MathGroup Archive 2004

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

Search the Archive

Re: plotting two functions on the one graph


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