Re: Plotting x and y arrays
- To: mathgroup at smc.vnet.net
- Subject: [mg82650] Re: Plotting x and y arrays
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Sat, 27 Oct 2007 06:01:59 -0400 (EDT)
- References: <ffsc78$mp4$1@smc.vnet.net>
Hi,
xData = Table[x, {x, 0, Pi, Pi/1024.}];
yData = Sin /@ xData;
ListPlot[Transpose[{xData, yData}]]
but Transpose[{xData, yData}]
is a new table
Regards
Jens
John Lee wrote:
> I have a table of x values and a separate table of corresponding y values. Is there a way to plot these values directly without using MapThread and without creating a new table to store the x and y values?
>
> Thanks,
> John
>