MathGroup Archive 1998

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

Search the Archive

Re: COMBINING LISTS


  • To: mathgroup@smc.vnet.net
  • Subject: [mg12274] Re: COMBINING LISTS
  • From: "Maris Tõnso" <maris@tpu.ee>
  • Date: Tue, 5 May 1998 03:30:11 -0400
  • References: <6ibuvg$dr@smc.vnet.net>

Knut Henning Schroder wrote:

> I have two lists:
> list1={a,b,c,d,...} and list2={x,y,z,...} I want to combine the two
> lists for ListPlot in Mathematica ListPlot[{{a,x},{b,y},{c,z},....}]
> Please let me know a simple way to do this.
>


There are many ways to get the same result. For example:

ListPlot[ Transpose[{list1, list2}]]

ListPlot[ MapThread[List, {list1, list2}]]

ListPlot[ Inner[List, list1, list2, List]]


Maris Tonso




  • Prev by Date: Semi-Log for X-axis
  • Next by Date: Re: How to do 3D plot of vertical planes?
  • Prev by thread: Re: COMBINING LISTS
  • Next by thread: Re: COMBINING LISTS