MathGroup Archive 1996

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

Search the Archive

Combining 2D With Different Scales

  • To: mathgroup at
  • Subject: [mg3703] Combining 2D With Different Scales
  • From: timothyr at Princeton.EDU (Timothy Robertson)
  • Date: Wed, 10 Apr 1996 02:10:40 -0400
  • Organization: Princeton University
  • Sender: owner-wri-mathgroup at


I would like to show two different ListPlots together which have the same ordinates, but 
whose abscissa differ by orders of magnitude (They in fact have different units).  I would
ideally like one scale along the left side and another on the right.  Does anyone know of 
a package or trick to do this easily?

Here is a little code which illustrates the problem:
Plot[Sin[x],{x,-10,10}]  	(*Current, Amps, for example*)
Plot[100 Cos[x],{x,-1,10}]  	(*Voltage, milivolts*)
Show[%,%%] 			(*Can't look at them both on the same plot*)

Thanks in Advance,
timothyr at Princeton.EDU


  • Prev by Date: Re: Trig Simplifications
  • Next by Date: Re: argument names
  • Previous by thread: complex roots
  • Next by thread: MathLink and C++ (can mathlink handle C++?)