       Re: Warning regarding ListContourPlot3D

• To: mathgroup at smc.vnet.net
• Subject: [mg116061] Re: Warning regarding ListContourPlot3D
• From: Brett Champion <brettc at wolfram.com>
• Date: Mon, 31 Jan 2011 03:24:30 -0500 (EST)

```On Jan 29, 2011, at 4:25 AM, Yen Lee Loh wrote:

> In Mathematica 7.0.1 on Linux x86-64, the example for ListContourPlot3D,
>
> ListContourPlot3D[
> Table[x^2 + y^2 - z^2 + RandomReal[0.1], {x, -2, 2, 0.2}, {y, -2, 2, 0.2},
> {z, -2, 2, 0.2}], Contours -> {0}, Mesh -> None]
>
> plots two cones with their axes in the x-direction (instead of the
> z-direction as would have been expected from the formula).  Using
> AxesLabel->{"x","y","z"} verifies this.  I don't really care (I don't use
> ListContourPlot3D much) but just thought I would put this out there, for
> reference by users of 7.0.1.  I haven't checked if ListContourPlot3D behaves
> differently in Mathematica 8.   -YLL

This actually depends on how you construct your table:

In:=
t1 = Table[
x^2 + y^2 - z^2, {x, -2, 2, 0.2}, {y, -2, 2, 0.2}, {z, -2, 2, 0.2}];

In:=
t2 = Table[
Table[Table[x^2 + y^2 - z^2, {x, -2, 2, 0.2}], {y, -2, 2,
0.2}], {z, -2, 2, 0.2}];

In:= t1 == t2

Out= False

In:= t1 == Transpose[t2, {3, 2, 1}]

Out= True

In:= ListContourPlot3D[t2]

Out= <<expected graphic>>

Brett Champion
Wolfram Research

```

• Prev by Date: Re: loops in mathematica
• Next by Date: Re: Problems integrating InterpolatingFunction
• Previous by thread: Warning regarding ListContourPlot3D
• Next by thread: Re: matrix[m,n]