Re: Headless set of elements?
- To: mathgroup at smc.vnet.net
- Subject: [mg32568] Re: [mg32557] Headless set of elements?
- From: BobHanlon at aol.com
- Date: Sun, 27 Jan 2002 03:28:57 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
In a message dated 1/26/02 5:06:53 AM, jushen1 at hotmail.com 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
>list
>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.
$Version
"4.1 for Mac OS X (November 5, 2001)"
Needs["Graphics`MultipleListPlot`"];
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