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: [mg53114] Re: plotting two functions on the one graph
  • From: mathma18 at hotmail.com (Narasimham)
  • Date: Fri, 24 Dec 2004 05:59:00 -0500 (EST)
  • References: <18tzsc73qtgb@legacy>
  • Sender: owner-wri-mathgroup at wolfram.com

On 15 Dec 04 10:24:47 -0500 (EST), Frank Murphy wrote:
>siafra at vaxsa.csied.unisa.it wrote:

> 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 ?

Plots (one or more) are usually made to compare quantities of the same
order of magnitude, so Mathematica has such a default plotting
feature. If there are big differences, either use a LogPlot or use a
scale factor SF in multiples of 10 to divide out the larger quantity
bringing it at par with the others for comparable plots.

SF = 10;
f = Plot[Sin[x], {x, 0, Pi}, DisplayFunction -> Identity];
g = Plot[Exp[x]/SF, {x, 0, Pi}, DisplayFunction -> Identity];
Show[{f, g}, DisplayFunction -> $DisplayFunction];


  • Prev by Date: Re: Coefficients of previous result
  • Next by Date: Re: Coefficients of previous result
  • Previous by thread: Re: plotting two functions on the one graph
  • Next by thread: Re: Re: plotting two functions on the one graph