Thanks to several people who explained how to solve my problem.
------------------------------------------------------------ -----------------
PROBLEM:
Suppose I have a data set of points in 3-dimensions
x=.....
y=.....
z=.....
I want to plot this data as individual points in 3-dimensions.
I am attempting to use the PLOTS function, but cannot seem to get it to work.
------------------------------------------------------------ ------------------
I am using the first one below and it works great.
John Boccio
boccio@cc.swarthmore.edu
------------------------------------------------------------ --
From Mike Mayer, [mayer@boulder.vni.com]
Try this. Assume your XYZ data is called X, Y, and Z respectively,
and that all three are equal length vectors.
xmin = MIN(x)
xmax = MAX(x)
ymin = MIN(y)
ymax = MAX(y)
zmin = MIN(z)
zmax = MAX(z)
SURFACE, [[0,0],[0,0]], xrange=[xmin, xmax], yrange=[ymin, ymax], $
zrange=[zmin, zmax], /Nodata, /Save
PLOTS, x, y, z, /Data, /T3d, psym=3
------------------------------------------------------------ ----
From Roy Einar Dragseth: [royd@zapffe.mat-stat.uit.no]
Try this:
M = 50
t = 2.*!pi*findgen(M)/(M-1.)
x = cos(t)
y= sin(t)
z = t
surface, fltarr(2,2), /save,/nodata,$
xrange=[min(x),max(x)],yrange=[min(y),max(y)],zrange=[min(z) ,max(z)]
plots, x, y, z, /t3d, psym=3
------------------------------------------------------------ ------
From Vinay Kashyap [kashyap@oddjob.uchicago.edu]
plot,x,y
t3d,/reset,rot=[30,30,30] & scale3d
erase & plots,x,y,z,/t3d,/data
|