MathGroup Archive 2007

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

Search the Archive

Re: ListPlot3D on 3 by 3 Arrays

  • To: mathgroup at smc.vnet.net
  • Subject: [mg79766] Re: ListPlot3D on 3 by 3 Arrays
  • From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
  • Date: Sat, 4 Aug 2007 05:47:02 -0400 (EDT)
  • Organization: The Open University, Milton Keynes, UK
  • References: <f8uvk1$bms$1@smc.vnet.net>

Fiona H Evans wrote:
> Hi all,
> 
> I have a problem with using ListPlot3D on 3 by 3 Arrays. It seems that
> Mathematica 6.0.1.0 thinks that my Array is a List {{x1, y1, z1}, {x2,
> y2, z2}, {x3,y3,z3}}, when I intend it to be used as an Array of
> height values indexed by its rows and columns. I guess this is so that
> irregular datasets can be visualized using ListPlot3D, but does it
> mean that I have to convert my Arrays (which may be variable in size)
> into Lists? If so, is there an efficient way to do it?
> 
> Cheers, Fiona.

I may not have understood correctly your request (posting a real example 
of what you tried would help), but the following expressions work as 
expected. So you must have something wrong with your dataset or with 
your command. By the way, Mathematica expect a list of triples. Are you 
using anything else?

In[1]:= $Version
data = RandomReal[{-10, 10}, {3, 3}]
ListPlot3D[data]

Out[1]= "6.0 for Microsoft Windows (32-bit) (June 19, 2007)"

Out[2]= {{2.21572, 5.23816, -8.79253}, {8.16265, -2.82413,
   4.44417}, {-9.53565, 5.17273, 8.62308}}

Out[3]= [... graphic deleted ...]

Regards,
Jean-Marc


  • Prev by Date: Re: Density Plot coloring issue
  • Next by Date: Re: If a*b=c/d, then a=c/bd, How do i do this in Mathematica?
  • Previous by thread: ListPlot3D on 3 by 3 Arrays
  • Next by thread: Re: ListPlot3D on 3 by 3 Arrays