Re: Plotting multi-column data

• To: mathgroup at smc.vnet.net
• Subject: [mg71135] Re: Plotting multi-column data
• From: Bill Rowe <readnewsciv at sbcglobal.net>
• Date: Thu, 9 Nov 2006 03:37:48 -0500 (EST)

```On 11/8/06 at 6:15 AM, dmwood at floyd.comcast.net (David Wood) wrote:

>I'd like to to plot multi-column data, a line of which might look
>like, e.g.:

>x1 y1 y2 y3 y4 y5

>using Mathematica.  (I might have several tens of columns of data.)

>(Yes, I know MultipleListPlot would handle sets like
>{{x1,f1(x1)},{x2,f1(x2},..}} etc, but this requires clumsily
>defining several dozen new standalone data arrays.)

>How to accomplish this efficiently appears mystically opaque to my
>untutored eyes, or perhaps I'm addled from too much US election
>coverage.  A Google search on this group's archives, MathSource, and
>the Wolfram site with the inoffensive keywords plot multi-column
>data yielded doodly-squat (actually, less than that).

>Any suggestions? Many thanks!

It isn't clear to me whether you want separate plots or
everything on one plot.

First, generate so test data, i.e.,

data = Table[{x, 2x, x^2, x^3}, {x, 0, 1, .05}];

then

ListPlot[data[[All, {1, #}]]]&/@Range[2, 4];

will generate separate plots with the first column being the
x-axis for each

and

Show[Block[{\$DisplayFunction = Identity},
ListPlot[data[[All, {1, #}]]]&/@Range[2, 4]]];

will generate a single plot with the first column being the x-axis
--
To reply via email subtract one hundred and four

```

• Prev by Date: Re: Efficiency of repeatedly appending to a List
• Next by Date: Re: Efficiency of repeatedly appending to a List
• Previous by thread: RE: Plotting multi-column data
• Next by thread: Re: Plotting multi-column data