MathGroup Archive 2006

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

Search the Archive

Re: A bug in ListPlot3D ?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg65912] Re: [mg65906] A bug in ListPlot3D ?
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Sun, 23 Apr 2006 06:17:13 -0400 (EDT)
  • Reply-to: hanlonr at cox.net
  • Sender: owner-wri-mathgroup at wolfram.com

From the Help for ListPlot3D:

"array should be a rectangular array of real numbers representing z values."

"ListPlot3D[array] by default takes the x and y coordinate values for each data 
point to taken to be successive integers starting at 1."

Use ListSurfacePlot3D instead.

Needs["Graphics`"];

pts={{3,55,-3},{3,60,-3},{4,55,-2},{4,60,-2.5}};

ListSurfacePlot3D[Partition[pts,2],Axes->True];


Bob Hanlon

> 
> From: "Hui Fang" <fangh73 at xmu.edu.cn>
To: mathgroup at smc.vnet.net
> Subject: [mg65912] [mg65906] A bug in ListPlot3D ?
> 
> I'm trying to use ListPlot3D to show a interesting surface. However, the
> result is very confusing. Since my data is rather long, I'll just use 4
> points to explain what happened.
> 
>  
> 
> ListPlot3D[{{3,55,-3},{3,60,-3},{4,55,-2},{4,60,-2.5}}]
> 
>  
> 
> The range of x and y axes are between {1,3} and {1,4} respectively, but the
> y axes is supposed to be about 60! The worse thing is the z axis has a 
range
> from 1 to 60, not showing anything NEGATIVE!
> 
>  
> 
> Anybody has any idea what's going on? I am using Mathematica 4.1. 
Thanks a
> lot!
> 
>  
> 
> Dr. H. Fang
> 
> Department of Physics
> 
> Xiamen Univeristy
> 
> Xiamen, Fujian 361005
> 
> 
> 


  • Prev by Date: matrix operations -- shared data vs copied
  • Next by Date: Re: A bug in ListPlot3D ?
  • Previous by thread: Re: A bug in ListPlot3D ?
  • Next by thread: Re: A bug in ListPlot3D ?