Re: Plotting x and y arrays
- To: mathgroup at smc.vnet.net
- Subject: [mg82658] Re: Plotting x and y arrays
- From: "Steve Luttrell" <steve at _removemefirst_luttrell.org.uk>
- Date: Sat, 27 Oct 2007 06:06:06 -0400 (EDT)
- References: <ffsc78$mp4$1@smc.vnet.net>
This will do the sort of thing that you want:
x = RandomReal[{-1, 1}, {100}];
y = RandomReal[{-1, 1}, {100}];
ListPlot[Transpose[{x, y}]]
--
Steve Luttrell
West Malvern, UK
"John Lee" <johnlee_15 at hotmail.com> wrote in message
news:ffsc78$mp4$1 at smc.vnet.net...
>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
>