MathGroup Archive 2010

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

Search the Archive

Re: Plotting two list variables

  • To: mathgroup at smc.vnet.net
  • Subject: [mg107391] Re: [mg107383] Plotting two list variables
  • From: Patrick Scheibe <pscheibe at trm.uni-leipzig.de>
  • Date: Thu, 11 Feb 2010 06:53:33 -0500 (EST)
  • References: <201002111019.FAA28137@smc.vnet.net>

Hi,

but when you have the lists unseparated in drugs[[]], why dont you use
ListPlot[drugs[[All,{2,3}]]]?

data = Table[{i, i + RandomReal[]*0.1, Sin[i] + RandomReal[]*0.1}, {i,
     0, 2 Pi, 0.1}];
ListPlot[data[[All, {2, 3}]]]

Cheers
Patrick

On Thu, 2010-02-11 at 05:19 -0500, Bob Gotwals 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]];
> 



  • Prev by Date: Re: Weird vanishing syntax coloring
  • Next by Date: Re: Clip[DirectedInfinity[1]] remains unevaluated?
  • Previous by thread: Plotting two list variables
  • Next by thread: Re: Plotting two list variables