Re: List of lists in MultipleListPlot
- To: mathgroup at smc.vnet.net
- Subject: [mg8978] Re: [mg8936] List of lists in MultipleListPlot
- From: "W. Meeussen" <w.meeussen.vdmcc at vandemoortele.be>
- Date: Tue, 7 Oct 1997 03:35:25 -0400
- Sender: owner-wri-mathgroup at wolfram.com
hi Niklas,
why resort to ...list[[n]]... if the Apply function does it for you?
Apply[ MultipleListPlot, lists ]
or
MultipleListPlot @@ lists
remember that Apply (@@) overwrites the outer Head of its argument:
p @@ q[r] gives q[r]
wouter.
At 22:08 4-10-97 -0400, Niklas Blomberg wrote:
>Dear all,
>
>I would like to plot a list of lists with MultipleListPlot but the function
>only accepts
>individual lists as arguments ie:
>
>lists={{{1,1},{2,2}},{{2,1},{2,2}}};
>Now MultipleListPlot[lists[[1]],lists[[2]]] works fine but is cumbersome with
>many lists.
>
>What I would like to do of course is to plot "lists" directly - Flatten and
>Map do not do the trick so are
>there any suggestions?
>
>Cheers,
>Niklas
>
>PS. Direct email as well as postings to ng would be appreciated since our
>newsfeeder has troubles for the moment
>
>
>
>--
>Niklas Blomberg
>European Molecular Biology Laboratory
>Structural Biology
>Postfach 10.2209
>D-690 12 Heidelberg
>F.R. Germany
>
>Phone +49 6221 387 269
>Telefax +49 6221 387 517
>E-mail blomberg at nmr.embl-heidelberg.de
>
>
Dr. Wouter L. J. MEEUSSEN
w.meeussen.vdmcc at vandemoortele.be