Re: Plotting two list variables
- To: mathgroup at smc.vnet.net
- Subject: [mg107417] Re: [mg107383] Plotting two list variables
- From: DrMajorBob <btreat1 at austin.rr.com>
- Date: Fri, 12 Feb 2010 04:41:18 -0500 (EST)
- References: <201002111019.FAA28137@smc.vnet.net>
- Reply-to: drmajorbob at yahoo.com
For instance, drugs = Table[{RandomReal[], x, Sin@x}, {x, 0, 2 Pi, Pi/50}]; logP = drugs[[All, 2]]; logS = drugs[[All, 3]]; ListPlot@Transpose@{logP, logS} or ListPlot@drugs[[All, {2, 3}]] Bobby On Thu, 11 Feb 2010 04:19:24 -0600, Bob Gotwals <gotwals at ncssm.edu> wrote: > I have two variables in separate lists, extracted from a larger data > set. How do I plot one as "x", and the other as "y"? > > logP = drugs[[All, 2]]; > logS = drugs[[All, 3]]; > -- DrMajorBob at yahoo.com
- References:
- Plotting two list variables
- From: Bob Gotwals <gotwals@ncssm.edu>
- Plotting two list variables