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

Home » Public Forums » archive » Re: Why can't IDL do simple things...?
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
Re: Why can't IDL do simple things...? [message #2654] Fri, 26 August 1994 00:23
hartman is currently offline  hartman
Messages: 9
Registered: August 1994
Junior Member
In <1994Aug25.205015.13891@ll.mit.edu> ryba@ll.mit.edu (Marty Ryba) writes:

> In article <1994Aug25.204418.13013@ll.mit.edu>, ryba@ll.mit.edu (Marty Ryba) writes:
> |> Isn't it just:
> |> surface,x,y,z,/nodata,/save ; Generate 3-d coordinates
> |> plots,x,y,z,/t3d,psym=xxx ; Plot the points

> Oops! It's

> surface,z,x,y,/nodata,/save ; Z goes first for surface
> plots,x,y,z,/t3d,psym=3

thanks to all who responed. It is simple to do this, but not
straightforward. For those who also want to know:

gridd = fltarr(10,10) ; make a dummy array
surface,gridd,/nodata,/save ; and fill the 3D-transformation variable.

plots,x,y,z,psym=3,/t3d ; et voila !

JanWillem.
Re: Why can't IDL do simple things...? [message #2656 is a reply to message #2654] Thu, 25 August 1994 13:50 Go to previous message
ryba is currently offline  ryba
Messages: 33
Registered: October 1992
Member
In article <1994Aug25.204418.13013@ll.mit.edu>, ryba@ll.mit.edu (Marty Ryba) writes:
|> Isn't it just:
|> surface,x,y,z,/nodata,/save ; Generate 3-d coordinates
|> plots,x,y,z,/t3d,psym=xxx ; Plot the points

Oops! It's

surface,z,x,y,/nodata,/save ; Z goes first for surface
plots,x,y,z,/t3d,psym=3

--
Dr. Marty Ryba | Generation X:
MIT Lincoln Laboratory | Too young to be cynical,
ryba@ll.mit.edu | too old to be optimistic.
Of course nothing I say here is official policy, and Laboratory affiliation is
for identification purposes only, blah, blah, blah....
Re: Why can't IDL do simple things...? [message #2657 is a reply to message #2656] Thu, 25 August 1994 13:44 Go to previous message
ryba is currently offline  ryba
Messages: 33
Registered: October 1992
Member
In article <33i7t9$snk@paperboy.gsfc.nasa.gov>, thompson@orpheus.gsfc.nasa.gov (William Thompson) writes:
|> grunes@imsy1.nrl.navy.mil (Mitchell R Grunes) writes:
|>
|> >In article <1994Aug24.143231.8722@fys.ruu.nl> hartman@fys.ruu.nl (Jan Willem Hartman) writes:
|> >>..or rather, probably, why can't I make IDL do simple things..
|> >>
|> >>This is what I want: I have this bunch of data: x,y,z. So I want IDL
|> >>to plot just these points (eventually the points may be connected, but
|> >>let's not get too difficult) in 3D. So just like SURFACE, but with no
|> >>surface. Any idea??? Thanks in advance...
|> >>JanWillem Hartman.
|>
|> >plot,[x1,x2,x3],[y1,y2,y3]
|>
|> No, what I think he really wants to be able to do is to say
|>
|> plot, X, Y, Z
|>
|> where (X(i), Y(i), Z(i)) represents a point in 3D space. (One would have to
|> define a viewing angle, of course.) Sounds like a reasonable idea to me.
|> Unfortunately, I don't think IDL can do this at the moment, at least not so
|> straightforwardly.

Isn't it just:
surface,x,y,z,/nodata,/save ; Generate 3-d coordinates
plots,x,y,z,/t3d,psym=xxx ; Plot the points

--
Dr. Marty Ryba | Generation X:
MIT Lincoln Laboratory | Too young to be cynical,
ryba@ll.mit.edu | too old to be optimistic.
Of course nothing I say here is official policy, and Laboratory affiliation is
for identification purposes only, blah, blah, blah....
Re: Why can't IDL do simple things...? [message #2664 is a reply to message #2657] Thu, 25 August 1994 06:55 Go to previous message
thompson is currently offline  thompson
Messages: 584
Registered: August 1991
Senior Member
grunes@imsy1.nrl.navy.mil (Mitchell R Grunes) writes:

> In article <1994Aug24.143231.8722@fys.ruu.nl> hartman@fys.ruu.nl (Jan Willem Hartman) writes:
>> ..or rather, probably, why can't I make IDL do simple things..
>>
>> This is what I want: I have this bunch of data: x,y,z. So I want IDL
>> to plot just these points (eventually the points may be connected, but
>> let's not get too difficult) in 3D. So just like SURFACE, but with no
>> surface. Any idea??? Thanks in advance...
>> JanWillem Hartman.
>>

> plot,[x,y,z]

> If you really mean (x1,y1), (x2,y2), (x3,y3) I think you want something
> like

> plot,[x1,x2,x3],[y1,y2,y3]

No, what I think he really wants to be able to do is to say

plot, X, Y, Z

where (X(i), Y(i), Z(i)) represents a point in 3D space. (One would have to
define a viewing angle, of course.) Sounds like a reasonable idea to me.
Unfortunately, I don't think IDL can do this at the moment, at least not so
straightforwardly.

Bill Thompson
Re: Why can't IDL do simple things...? [message #2665 is a reply to message #2664] Thu, 25 August 1994 06:33 Go to previous message
grunes is currently offline  grunes
Messages: 68
Registered: September 1993
Member
In article <1994Aug24.143231.8722@fys.ruu.nl> hartman@fys.ruu.nl (Jan Willem Hartman) writes:
> ..or rather, probably, why can't I make IDL do simple things..
>
> This is what I want: I have this bunch of data: x,y,z. So I want IDL
> to plot just these points (eventually the points may be connected, but
> let's not get too difficult) in 3D. So just like SURFACE, but with no
> surface. Any idea??? Thanks in advance...
> JanWillem Hartman.
>

plot,[x,y,z]

If you really mean (x1,y1), (x2,y2), (x3,y3) I think you want something
like

plot,[x1,x2,x3],[y1,y2,y3]
Mitchell R Grunes (grunes@imsy1.nrl.navy.mil)
Allied-Signal Technical Services
c/o Code 7230 Naval Research Lab
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: arbitrary xy cut through z data?
Next Topic: Please help. PostScript Import

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

Current Time: Sun Nov 30 04:25:24 PST 2025

Total time taken to generate the page: 1.20102 seconds