Re: 3D Plot (or ListPlot?) Question
- To: mathgroup at smc.vnet.net
- Subject: [mg67496] Re: 3D Plot (or ListPlot?) Question
- From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
- Date: Wed, 28 Jun 2006 03:52:13 -0400 (EDT)
- Organization: The Open University, Milton Keynes, UK
- References: <e7qmjt$6lt$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
wellsk at carleton.edu wrote: > Hopefully an easy question: > > I have a list with the form {{x,y,z},{x2,y2,z2},....} and I would like > to create a 3D plot of this data. Unfortunately, 3DListPlot likes to > automatically assign the x and y coordinates for the plot. Is there > any way I can get it to plot my {x,y,z} data on their respective axes? > > Thanks, > > Kassie > > > Hi Kassie, The built-in function *ListSurfacePlot3D* [1], from the standard package _Graphics`Graphics3D`_, will do what your want. For instance, In[1]:= << "Graphics`Graphics3D`" data = {{{0.1, 0.2, 0}, {1.2, 0.4, 0}, {2.2, 0.1, 1}, {2.8, 0.3, 1}, {4.1, 0., 0}}, {{0., 2.3, 1}, {1.1, 1.7, 0}, {1.9, 2.5, 1}, {3.1, 2.1, 1}, {3.8, 1.9, 1}}, {{0.2, 3.6, 2}, {0.8, 3.9, 1}, {2.1, 4.3, 2}, {3., 4., 2}, {4.2, 3.8, 1}}, {{0.1, 6.1, 2}, {1.2, 5.7, 1}, {2., 5.8, 2}, {2.9, 6.2, 2}, {4.1, 5.9, 2}}}; ListSurfacePlot3D[data, Axes -> True]; Best regards, Jean-Marc [1] http://documents.wolfram.com/mathematica/Add-onsLinks/StandardPackages/Graphics/Graphics3D.html