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

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

Search the Archive

Re: 2D plot for lists?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg53430] Re: 2D plot for lists?
  • From: Bill Rowe <readnewsciv at earthlink.net>
  • Date: Tue, 11 Jan 2005 01:31:33 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

On 1/9/05 at 11:03 PM, rob at pi-overe.com (J. K. Smith) wrote:

>I'd like to make a 2D plot using two lists for the x and y axes.  I
>need what ParametricPlot[ {x[t], y[t]}, {t, tmin, tmax}] does for
>two functions of t except x and y are lists of values. There
>doesn't seem to be a ParametricListPlot[] to do this.  Any
>suggestions? 

I am assuming both x and y are 1 dimensionsal lists. If so, you can achieve what you want by using Interpolation to change each list into an InterpolatingFunction and then using the resulting functions in ParametricPlot. For example,

y = Table[Random[], {5}]; 
x = Table[Random[] + 2*n, {n, 5}]; 
fx = Interpolation[x]; 
fy = Interpolation[y]; 
ParametricPlot[{fx[t], fy[t]}, {t, 1, 5}]; 
--
To reply via email subtract one hundred and four


  • Prev by Date: Re: easy question about random numbers
  • Next by Date: [Newbie] Ohm, Ampere, Volt units
  • Previous by thread: Re: 2D plot for lists?
  • Next by thread: Re: 2D plot for lists?