MathGroup Archive 2002

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

Search the Archive

Re: Headless set of elements?

  • To: mathgroup at
  • Subject: [mg32568] Re: [mg32557] Headless set of elements?
  • From: BobHanlon at
  • Date: Sun, 27 Jan 2002 03:28:57 -0500 (EST)
  • Sender: owner-wri-mathgroup at

In a message dated 1/26/02 5:06:53 AM, jushen1 at writes:

>I am trying to use MultipleListPlot, and my dataset looks like
>{list1, list2, list3, list4, ..., listn}, where the number of lists can
>vary. However, the syntax of MultipleListPlot is as
>MultipleListPlot[list1, list2, list3, ..., listn]. In this case, what would
>be the most efficient way to achieve this (instead of cut and past each
>by hand)?

MultipleListPlot does not care whether the lists are in a list.  
All of the following produce the same results.  However, the 
last example with Sequence does what you requested.


"4.1 for Mac OS X (November 5, 2001)"


lists = {list1=Table[{x,Sin[2 Pi x]},{x,0,1,1/16}],
      list2 = Table[{x,Cos[2 Pi x]},{x,0,1,1/16}]};

MultipleListPlot[list1,list2, PlotJoined->True];

MultipleListPlot[{list1,list2}, PlotJoined->True];

MultipleListPlot[lists, PlotJoined->True];

MultipleListPlot[Sequence@@lists, PlotJoined->True];

Bob Hanlon
Chantilly, VA  USA

  • Prev by Date: Re: Headless set of elements?
  • Next by Date: RE: Headless set of elements?
  • Previous by thread: Re: Headless set of elements?
  • Next by thread: RE: Headless set of elements?