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] ====