Re: ListContourPlot3D - only working with arrays?
- To: mathgroup at smc.vnet.net
- Subject: [mg107957] Re: ListContourPlot3D - only working with arrays?
- From: dh <dh at metrohm.com>
- Date: Thu, 4 Mar 2010 05:25:26 -0500 (EST)
- References: <hmlf4g$k04$1@smc.vnet.net>
Hi, you do not have enough data for a contour plot. Try the following with n=40 and n=4: n = 40; data = Flatten[Table[{x, y, z, x^2 + y^2 + z^2}, {x, 0, n}, {y, 0, n}, {z, 0, n}],2]; ListContourPlot3D[data] Daniel On 03.03.2010 11:54, pernille wrote: > Hi > > I have data in the form {{x1,y1,z1,f1},{x2,y2,z2,f2},...} and want to make a 3D contourplot. > > But why does this not work ?? : > > ListContourPlot3D[{{1, 1, 1, 3}, {1, 1, 2, 4}, {1, 1, 3, 5}, {1, 2, 1, > 4}, {1, 2, 2, 5}, {1, 2, 3, 6}, {1, 3, 1, 5}, {1, 3, 2, 6}, {1, 3, > 3, 7}, {2, 1, 1, 4}, {2, 1, 2, 5}, {2, 1, 3, 6}, {2, 2, 1, 5}, {2, > 2, 2, 6}, {2, 2, 3, 7}, {2, 3, 1, 6}, {2, 3, 2, 7}, {2, 3, 3, > 8}, {3, 1, 1, 5}, {3, 1, 2, 6}, {3, 1, 3, 7}, {3, 2, 1, 6}, {3, 2, > 2, 7}, {3, 2, 3, 8}, {3, 3, 1, 7}, {3, 3, 2, 8}, {3, 3, 3, 9}}, > Contours -> {2, 4, 6, 8}] > > > > when this does ?? : > > ListContourPlot3D[ > Table[x + y + z, {x, 1, 3, 1}, {y, 1, 3, 1}, {z, 1, 3, 1}], > Contours -> {2, 4, 6, 8}] > > It should be the same plot - only in the first case you get to define x,y and z coordinates yourself? > > I'm very thankful for any help! > -- Daniel Huber Metrohm Ltd. Oberdorfstr. 68 CH-9100 Herisau Tel. +41 71 353 8585, Fax +41 71 353 8907 E-Mail:<mailto:dh at metrohm.com> Internet:<http://www.metrohm.com>