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

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

Search the Archive

Combining 2D With Different Scales

  • To: mathgroup at smc.vnet.net
  • 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 wolfram.com

Hello,

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,
-Tim
timothyr at Princeton.EDU



==== [MESSAGE SEPARATOR] ====


  • 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++?)