comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Points in 3-dimensions
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Points in 3-dimensions [message #3070] Sun, 06 November 1994 09:37 Go to next message
boccio is currently offline  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 Go to previous message
jacobsen is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: How to record IDL animations to MPEG?
Next Topic: IDL on DEC 3000

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:23:15 PDT 2025

Total time taken to generate the page: 0.00495 seconds