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