Re: how to combine two data into one data? [message #43658] |
Tue, 19 April 2005 09:30 |
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 #43666 is a reply to message #43662] |
Tue, 19 April 2005 08:31  |
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  |
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  |
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/
|
|
|