Google Группы больше не поддерживают новые публикации и подписки в сети Usenet. Опубликованный ранее контент останется доступен.

ListPlot and ListPlot3D

0 просмотров
Перейти к первому непрочитанному сообщению

Peng Yu

не прочитано,
24 окт. 2006 г., 02:28:2024.10.2006
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

не прочитано,
25 окт. 2006 г., 01:46:4425.10.2006
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

не прочитано,
25 окт. 2006 г., 01:48:4525.10.2006
See ScatterPlot
To this end execute the following command

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

Regards
Dimitris

Bill Rowe

не прочитано,
25 окт. 2006 г., 01:56:5325.10.2006
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

не прочитано,
25 окт. 2006 г., 01:57:5425.10.2006
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

не прочитано,
25 окт. 2006 г., 02:02:0925.10.2006
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

не прочитано,
26 окт. 2006 г., 02:56:5926.10.2006
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 новых сообщений