Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1998
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1998

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

Search the Archive

Re: plotting {x,y} data where y is a array and x a scalar ??

  • To: mathgroup at smc.vnet.net
  • Subject: [mg12884] Re: plotting {x,y} data where y is a array and x a scalar ??
  • From: Martin Hirsch <m.hirsch at tu-braunschweig.de>
  • Date: Wed, 24 Jun 1998 03:44:10 -0400
  • Organization: INS TU BS
  • References: <6m7gth$h1t@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hello Thomas,

> How to plot  data of the form {x,y} where y is a array and x a scalar.
> Data is something like this:
>    {{1,{3,6,8,19,45}},{2,{4,7,8,23,45}},....} ListPlot cant do that or
> can it ??

I think that ListPlot cant do that because your data is not a
definite functional assignment.
My suggestion: Rearrange your data like this:

list1={{1,3},{2,4}(*,{...}*)};list2={{1,6},{2,7}};list3={{1,8},{2,8}};
list4={{1,19},{2,23}};list5={{1,45},{2,45}};

and then

Show[ListPlot[list1,PlotJoined->False,PlotRange->{{0,2},{0,50}},AxesOrigin->{0,0}],

 ListPlot[list2],
 ListPlot[list3],
 ListPlot[list4],
 ListPlot[list5]]


Hope that helps

Martin



  • Prev by Date: Inconsistencies in pattern matching.
  • Next by Date: Stiff ODE's and Gear's Method in NDSolve
  • Previous by thread: plotting {x,y} data where y is a array and x a scalar ??
  • Next by thread: Re: plotting {x,y} data where y is a array and x a scalar ??