Mathematica 9 is now available
Student Support Forum
Student Support Forum: '3D Point Plots' topicStudent Support Forum > General > "3D Point Plots"

Next Comment >Help | Reply To Topic
Author Comment/Response
Tony Friscia
09/30/99 06:12am

I hope someonw can help me.
I am trying to plot points in 3D space of varying sizes. (These are specific points and sizes that I provide).
I have put the data in an n x 4 matix (we'll call it 'sample' here) of the form:

sample =
{{1, 1, 1, 1},
{1, 2, 3, 3},
{3, 4, 5, 2},
{1, 2, 5, 3},
. . . . (and so on for thousands of lines)

I would like to extract the first 3 terms of each line as the x,y,z coordinates of the points and last term of each line as the size (using the AbsolutePointSize command).
What I came up with is the following command''

Show [ Graphics3D [{ AbsolutePointSize [ Part [ sample, 4]], Point [ Part [ sample, { 1, 2, 3 }]]}]]

I know something is wrong with the Part statements cuz it's extract the whole line, instead of the parts of each line. Also, I don't know that if I do get the Part commands right if it'll work. Should I be using the ScatterPlot3D command instead?
(Sorry if this sounds silly or easy, but this is the FIRST time I have ever used Mathematica)
Dept. of OBEE

URL: ,

Subject (listing for '3D Point Plots')
Author Date Posted
3D Point Plots Tony Friscia 09/30/99 06:12am
Re: 3D Point Plots Forum Modera... 09/30/99 06:32am
Next Comment >Help | Reply To Topic