Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2007

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

Search the Archive

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
> 



  • Prev by Date: Re: Plotting x and y arrays
  • Next by Date: Re: Tooltip does not what I expect it to do
  • Previous by thread: Re: Plotting x and y arrays
  • Next by thread: Re: Plotting x and y arrays