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

Home » Public Forums » archive » Re: how to combine two data into one data?
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: how to combine two data into one data? [message #43658] Tue, 19 April 2005 09:30
Benjamin Hornberger is currently offline  Benjamin Hornberger
Messages: 258
Registered: March 2004
Senior Member
lixiaoyao wrote:
> so,how many method is there to draw a three dimension graph,can you
> tell me some of it.
> also,how to change the viewed angel and how to draw contour?
> Thanks
>

Have a look at SHADE_SURF and CONTOUR in the IDL help index. All
keywords are described in detail. At the bottom of the page, you'll find
links to related routines, which can point you to other 3d visualization
methods.

On David's web site (http://www.dfanning.com/documents/tips.html),
there's a section "Graphical Display Tips (3d)". I recommend to skim
over that whole web page again and again as you make progress with IDL.
Each time you understand a new thing.

Benjamin
Re: how to combine two data into one data? [message #43660 is a reply to message #43658] Tue, 19 April 2005 09:18 Go to previous message
K. Bowman is currently offline  K. Bowman
Messages: 330
Registered: May 2000
Senior Member
In article <1113919698.898482.283570@o13g2000cwo.googlegroups.com>,
"lixiaoyao" <lixiaoyao5880@yahoo.com> wrote:

> for example
> x=10*!pi*findgen(1001)/1000
> y=10*!pi*findgen(1001)/1000
> how to let z a two dimension vector compose if x and y.
> Thanks

I think you want something like this:

xx = x#REPLICATE(1.0, 1001)
yy = REPLICATE(1.0, 1001)#y

z = xx*yy
SURFACE, Z

Ken Bowman
Re: how to combine two data into one data? [message #43662 is a reply to message #43660] Tue, 19 April 2005 08:51 Go to previous message
lixiaoyao is currently offline  lixiaoyao
Messages: 49
Registered: April 2005
Member
so,how many method is there to draw a three dimension graph,can you
tell me some of it.
also,how to change the viewed angel and how to draw contour?
Thanks
Re: how to combine two data into one data? [message #43666 is a reply to message #43662] Tue, 19 April 2005 08:31 Go to previous message
Benjamin Luethi is currently offline  Benjamin Luethi
Messages: 22
Registered: December 2004
Junior Member
It means nothing - it's only my opinion:

I assumed that x and y are both plot axis to plot some function or data
z(x,y)

IDL likes to have the two axis seperately:
SHADE_SURF, Z, X, Y
CONTOUR, Z, X, Y
etc...

So, by combining the two axis you don't save anything, because you have to
split them again for the next plotting call.

Ben

On Tue, 19 Apr 2005 17:13:11 +0200, lixiaoyao <lixiaoyao5880@yahoo.com>
wrote:

>
> Benjamin Luethi wrote:
>> Hi,
>>
>> I'm not sure what you're trying to do...
>>
>> if you want x and y in the same array use:
>> data=[[x],[y]]
> thanks a lot,this is what I want.
>>
>> (Now data[3,0] = x[3] and data[7,1] = y[7])
>>
>> But most plotting routines require x and y
>> seperately, so don't bother.
> what does this mean?
> thanks
>>
>> Ben
>>
>> On Tue, 19 Apr 2005 16:08:18 +0200, lixiaoyao
> <lixiaoyao5880@yahoo.com>
>> wrote:
>>
>>> for example
>>> x=10*!pi*findgen(1001)/1000
>>> y=10*!pi*findgen(1001)/1000
>>> how to let z a two dimension vector compose if x and y.
>>> Thanks
>>>
>>
>>
>>
>> --
>> Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
>



--
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
Re: how to combine two data into one data? [message #43670 is a reply to message #43666] Tue, 19 April 2005 08:13 Go to previous message
lixiaoyao is currently offline  lixiaoyao
Messages: 49
Registered: April 2005
Member
Benjamin Luethi wrote:
> Hi,
>
> I'm not sure what you're trying to do...
>
> if you want x and y in the same array use:
> data=[[x],[y]]
thanks a lot,this is what I want.
>
> (Now data[3,0] = x[3] and data[7,1] = y[7])
>
> But most plotting routines require x and y
> seperately, so don't bother.
what does this mean?
thanks
>
> Ben
>
> On Tue, 19 Apr 2005 16:08:18 +0200, lixiaoyao
<lixiaoyao5880@yahoo.com>
> wrote:
>
>> for example
>> x=10*!pi*findgen(1001)/1000
>> y=10*!pi*findgen(1001)/1000
>> how to let z a two dimension vector compose if x and y.
>> Thanks
>>
>
>
>
> --
> Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
Re: how to combine two data into one data? [message #43671 is a reply to message #43670] Tue, 19 April 2005 07:54 Go to previous message
Benjamin Luethi is currently offline  Benjamin Luethi
Messages: 22
Registered: December 2004
Junior Member
Hi,

I'm not sure what you're trying to do...

if you want x and y in the same array use:
data=[[x],[y]]

(Now data[3,0] = x[3] and data[7,1] = y[7])

But most plotting routines require x and y
seperately, so don't bother.

Ben

On Tue, 19 Apr 2005 16:08:18 +0200, lixiaoyao <lixiaoyao5880@yahoo.com>
wrote:

> for example
> x=10*!pi*findgen(1001)/1000
> y=10*!pi*findgen(1001)/1000
> how to let z a two dimension vector compose if x and y.
> Thanks
>



--
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: how to stop erase graph?
Next Topic: 3D rendering of a 3D binary structure

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

Current Time: Wed Oct 08 19:50:39 PDT 2025

Total time taken to generate the page: 0.00728 seconds