Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

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[103]:=
t1 = Table[
   x^2 + y^2 - z^2, {x, -2, 2, 0.2}, {y, -2, 2, 0.2}, {z, -2, 2, 0.2}];

In[104]:=
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[105]:= t1 == t2

Out[105]= False

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

Out[107]= True

In[108]:= ListContourPlot3D[t2]

Out[108]= <<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]