       Re: How to plot list of items {x,y} where x is a scalar and y is an array.

• To: mathgroup at smc.vnet.net
• Subject: [mg12888] Re: [mg12873] How to plot list of items {x,y} where x is a scalar and y is an array.
• From: "Jens-Peer Kuska" <kuska at linmpi.mpg.de>
• Date: Wed, 24 Jun 1998 03:44:13 -0400
• Sender: owner-wri-mathgroup at wolfram.com

```Hi Thomas,

If You want a single item of Your y-values, say the second

ListPlot[ data /. {x_?NumericQ,y_?VectorQ} :> {x,y[]}]

will work.
For all items You must use the MultipleListPlot[] function from the
standard packages.
Something like

MultipleListPlot[
Transpose[
data  /.
{x_?NumericQ,y_?VectorQ} :> {x,#} & /@ y
]
]

will work.

Hope that helps
Jens

-----Original Message-----
From: Thomas <talucard at hotmail.com>
To: mathgroup at smc.vnet.net
Subject: [mg12888] [mg12873] How to plot list of items {x,y} where x is a scalar
and y is an array.

>How to plot list of items {x,y} where x is a scalar and y is an array.
>Example a list like this
>     {{1,{1,4,8,9}},{2,{5,34,6,7}},...} Your help is appreciated.
>
>
>

```

• Prev by Date: Piecewise defined functions
• Next by Date: Inconsistencies in pattern matching.
• Previous by thread: How to plot list of items {x,y} where x is a scalar and y is an array.
• Next by thread: Re: How to plot list of items {x,y} where x is a scalar and y is an array.