Re: 2D plot for lists?
- To: mathgroup at smc.vnet.net
- Subject: [mg53427] Re: [mg53395] 2D plot for lists?
- From: yehuda ben-shimol <benshimo at bgu.ac.il>
- Date: Tue, 11 Jan 2005 01:31:21 -0500 (EST)
- References: <200501100403.XAA14022@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
First, I assume that both lists are named x and y and are of identical
length.
Then you can use either one of the followings
1) ListPlot[Transpose[{x,y}]]
2) ListPlot[Thread[{x,y}]]
good luck
yehuda
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? Thanks.
>
>Remove the "-" for email.
>
>
>
- References:
- 2D plot for lists?
- From: "J. K. Smith" <rob@pi-overe.com>
- 2D plot for lists?