error with ARROW [message #58379] |
Tue, 29 January 2008 07:57  |
nakisa
Messages: 24 Registered: June 2007
|
Junior Member |
|
|
Hi everybody
I have a file includes (x,y) and (x2,y2). I want use ARROW and each
of (x,y) connect to (x2,y2) .
After reading data from the file to IDL , I wrote
ARROW, x,y,x2,y2
But it doesn't work correctly, Where is the mistake ? It plot
nothing !
Nakisa
|
|
|
|
Re: error with ARROW [message #58505 is a reply to message #58379] |
Wed, 30 January 2008 07:13  |
pgrigis
Messages: 436 Registered: September 2007
|
Senior Member |
|
|
nakisa wrote:
> hi
> I can't understand your meaning of coordiant system! the file is
> produced with fortran in 4 columns . IDL read them this : x =
> Reform(data[0,*])
>
> then I wrote ARROW,x,y,x2,y2 , and it doesn't work !!
Let's make an example with this mock data
x=[0.,0.5,1.]
y=[0.,0.2,0.4]
x2=[0.3,0.7,1.1]
y2=[0.3,0.2,0.8]
plot,[0,0],/nodata,xrange=[-1,2],yrange=[-1,2]
arrow,x,y,x2,y2,/data
Does this work for you? Note the /data keyword to arrow!
Ciao,
Paolo
|
|
|