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

Home » Public Forums » archive » SUMMARY Plotting points in 3-dimensions
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
SUMMARY Plotting points in 3-dimensions [message #3068] Mon, 07 November 1994 10:55
boccio is currently offline  boccio
Messages: 10
Registered: November 1994
Junior Member
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
[Message index]
 
Read Message
Previous Topic: Solaris 2.3 "feature" of IDL
Next Topic: Appending structures?

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

Current Time: Sun Oct 12 07:31:09 PDT 2025

Total time taken to generate the page: 0.64001 seconds