Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ListPlot and ListPlot3D

0 views
Skip to first unread message

Peng Yu

unread,
Oct 24, 2006, 2:28:20 AM10/24/06
to
Hi,

ListPlot[{{x1,y1},{x2,y2},...}] plots a list of values with specified
x and y coordinates.

I'm wondering if there is any similar command in 3D such that I can
call ListPlot3D[{{x1,y1,z1},{x2,y2,z2},...}] to plot a list of values
with specified x and y coordinates.

It seems the build command ListPlot3D can not do this.

Thanks,
Peng

Jean-Marc Gulliet

unread,
Oct 25, 2006, 1:46:44 AM10/25/06
to
Peng,

The function you are looking for is called ListSurfacePlot3D

In[1]:=
<<Graphics`Graphics3D`

In[2]:=
?ListSurfacePlot3D

ListSurfacePlot3D[{{{x11, y11, z11}, ...},{{x12, y12, z12}, ...}, ...},
(options)] plots a matrix of points in three dimensions as a surface.

Regards,
Jean-Marc

dimitris

unread,
Oct 25, 2006, 1:48:45 AM10/25/06
to
See ScatterPlot
To this end execute the following command

FrontEndExecute[HelpBrowserLookup["AddOns", "Graphics`Graphics3D`",
"1.6"]]

Regards
Dimitris

Bill Rowe

unread,
Oct 25, 2006, 1:56:53 AM10/25/06
to
On 10/24/06 at 2:24 AM, peng...@gmail.com (Peng Yu) wrote:

>ListPlot[{{x1,y1},{x2,y2},...}] plots a list of values with
>specified x and y coordinates.

>I'm wondering if there is any similar command in 3D such that I can
>call ListPlot3D[{{x1,y1,z1},{x2,y2,z2},...}] to plot a list of
>values with specified x and y coordinates.

>It seems the build command ListPlot3D can not do this.

Yes, the built in command ListPlot3D assumes an array containing
z values where the array coordinates are taken to be x and y values.

The function to use to get Mathematica to plot points in 3D
space is ScatterPlot3D found in the package Graphics`Graphics3D`.
--
To reply via email subtract one hundred and four

Bob Hanlon

unread,
Oct 25, 2006, 1:57:54 AM10/25/06
to
Needs["Graphics`Graphics3D`"];

ScatterPlot3D[{{x1, y1, z1}, ...}, (options)]


Bob Hanlon

---- Peng Yu <peng...@gmail.com> wrote:
> Hi,


>
> ListPlot[{{x1,y1},{x2,y2},...}] plots a list of values with specified
> x and y coordinates.
>
> I'm wondering if there is any similar command in 3D such that I can
> call ListPlot3D[{{x1,y1,z1},{x2,y2,z2},...}] to plot a list of values
> with specified x and y coordinates.
>
> It seems the build command ListPlot3D can not do this.
>

> Thanks,
> Peng
>

Chris Chiasson

unread,
Oct 25, 2006, 2:02:09 AM10/25/06
to
The reason is that assumptions must be made about the set of points in
order to draw a surface for them.

Try

TriangularSurfacePlot

On 10/24/06, Peng Yu <peng...@gmail.com> wrote:
> Hi,
>
> ListPlot[{{x1,y1},{x2,y2},...}] plots a list of values with specified
> x and y coordinates.
>
> I'm wondering if there is any similar command in 3D such that I can
> call ListPlot3D[{{x1,y1,z1},{x2,y2,z2},...}] to plot a list of values
> with specified x and y coordinates.
>
> It seems the build command ListPlot3D can not do this.
>
> Thanks,
> Peng
>
>


--
http://chris.chiasson.name/

dimitris

unread,
Oct 26, 2006, 2:56:59 AM10/26/06
to
You can also define your own function as follows

pointListPlot3D[lis_List, opts___] := Show[Graphics3D[Point /@ lis],
opts, Axes -> True]

Example of application

pointListPlot3D[Table[{n Cos[n], n Sin[n], n}, {n, 0, 100, 0.1}]]

Compare with

Needs["Graphics`Graphics3D`"]
ScatterPlot3D[Table[{n Cos[n], n Sin[n], n}, {n, 0, 100, 0.1}]]

Regards
Dimitris

0 new messages