MathGroup Archive 1998

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

Search the Archive

Re: ListPlot?



On 23 May 1998, phpcp wrote:

> How can I plot one list against another
> 
> Sanjay.

One way, but maybe not the most elegant, is to combine the two lists
into one and plot that list.

In[1]:= list1 = {1, 2, 3, 4}

Out[1]= {1, 2, 3, 4}

In[2]:= list2 = {a, b, c, d}

Out[2]= {a, b, c, d}

In[3]:= newlist = Transpose[{list1,list2}]

Out[3]= {{1, a}, {2, b}, {3, c}, {4, d}}

Now ListPlot this newlist.
-------------------------------------------------------------------------
Dr. Richard L. Bowman
Chair, Dept. of Physics                  e-mail: 
rbowman@bridgewater.edu (and Dir. of Academic Computing)               
phone:  540-828-5441 Bridgewater College                               
FAX:  540-828-5479 Bridgewater, VA  22812              
http://www.bridgewater.edu/~rbowman/ 
-------------------------------------------------------------------------





  • Prev by Date: Re: A Bug / Feature
  • Next by Date: Re: What to return on symbolic evaluation of own heads ?
  • Prev by thread: Re: ListPlot?
  • Next by thread: A Bug / Feature