From: pernille on 3 Mar 2010 05:54 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!
From: dh on 4 Mar 2010 05:25 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(a)metrohm.com> Internet:<http://www.metrohm.com>
From: David Park on 4 Mar 2010 05:33 It appears not to work and it is the kind of thing that WRI should either fix, or remove it as a form of ListContourPlot3D because users can waste a lot of time on it. David Park djmpark(a)comcast.net http://home.comcast.net/~djmpark/ From: pernille [mailto:pernille.yde(a)gmail.com] 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!
|
Pages: 1 Prev: Developing C code with Workbench Next: What inspite FindInstance ? |