MathGroup Archive 2010

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

Search the Archive

Re: Plotting two list variables

  • To: mathgroup at smc.vnet.net
  • Subject: [mg107426] Re: Plotting two list variables
  • From: "Sjoerd C. de Vries" <sjoerd.c.devries at gmail.com>
  • Date: Fri, 12 Feb 2010 04:42:54 -0500 (EST)
  • References: <hl0ono$t34$1@smc.vnet.net>

Hi Bob,

In general, when you have two lists to plot against each other you can
use Transpose to make coordinate pairs:

ListPlot[Transpose[{listx,listy}]].

Cheers -- Sjoerd


On Feb 11, 1:12 pm, Bob Gotwals <gotw... 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]];



  • Prev by Date: Trouble with Textbook Style Sheet
  • Next by Date: ListVectorPlot scaling
  • Previous by thread: Re: Plotting two list variables
  • Next by thread: Mathematica usage in finance