MathGroup Archive 2009

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

Search the Archive

Re: Plot Lists of values from excel to mathematica

  • To: mathgroup at smc.vnet.net
  • Subject: [mg95337] Re: [mg95310] Plot Lists of values from excel to mathematica
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Fri, 16 Jan 2009 06:07:05 -0500 (EST)
  • Reply-to: hanlonr at cox.net

data = {{1, 5, 2, 4}, {2, 6, 1, 2},
   {3, 2, 2, 1}, {4, 1, 7, 2}};

f[x_List] := {First[x], #} & /@ Rest[x];

plotData = Transpose[f /@ data];

ListLinePlot[plotData,
 PlotMarkers -> Automatic,
 AxesOrigin -> {0, 0}]


Bob Hanlon

---- dinodeblasio at gmail.com wrote: 

=============
Hello everybody I'd like to plot in mathematica one four columns data
that i have in excel, how i can do that in mathematica? For example I
have:
1 5 2 4
2 6 1 2
3 2 2 1
4 1 7 2

I'd like to have a plot wher on the x axis I have 1,2,3,4 and for the
x=1 the point are at: 5,2,4; at x=2 the points are at 6,1,2 and so on.
What is the simplest way to do that in mathematica?
Thanks very much.
Dino


--

Bob Hanlon



  • Prev by Date: Re: Plot Lists of values from excel to mathematica
  • Next by Date: Re: Moving $UserBaseDirectory makes all paclets do not working
  • Previous by thread: Re: Plot Lists of values from excel to mathematica
  • Next by thread: Re: Plot Lists of values from excel to mathematica