Points in 3-dimensions [message #3070] |
Sun, 06 November 1994 09:37  |
boccio
Messages: 10 Registered: November 1994
|
Junior Member |
|
|
Hi,
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.
Any advice, sample code, etc appreciated.
John Boccio
boccio@cc.swarthmore.edu
|
|
|
Re: Points in 3-dimensions [message #3133 is a reply to message #3070] |
Sat, 12 November 1994 00:58  |
jacobsen
Messages: 28 Registered: July 1992
|
Junior Member |
|
|
pro test
!p.charsize=2.5
!p.font=-1
xr=[-4,4]
yr=[-4,4]
zr=[-10,10]
!x.title='X (mm)'
!y.title='Y (mm)'
!z.title='Z (mm)'
!p.title='Plot title'
surface,fltarr(2,2),/nodata,xrange=xr,yrange=yr,zrange=zr,/s ave
xvec=[0,0,0]
yvec=[-3,0,0]
zvec=[-2,-2,4]
plots,xvec,yvec,zvec,/t3d,thick=2
return
end
--
Chris Jacobsen, Asst. Prof., Department of Physics, SUNY at Stony Brook
Phone (516) 632-8093, FAX -8101 Bitnet: cjacobsen@sbccmail
jacobsen@xray1.physics.sunysb.edu Stony Brook ALL-IN_ONE: CJACOBSEN
|
|
|