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

Home » Public Forums » archive » error with ARROW
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
error with ARROW [message #58379] Tue, 29 January 2008 07:57 Go to next message
nakisa is currently offline  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 #58500 is a reply to message #58379] Wed, 30 January 2008 11:35 Go to previous message
nakisa is currently offline  nakisa
Messages: 24
Registered: June 2007
Junior Member
thanks Paolo
the keyword that I didn't write was "/data " . I add it and now code
works nicely.
nakisa
Re: error with ARROW [message #58505 is a reply to message #58379] Wed, 30 January 2008 07:13 Go to previous message
pgrigis is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: array concatenation
Next Topic: workbench filenames and program names

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

Current Time: Sat Oct 11 05:14:03 PDT 2025

Total time taken to generate the page: 1.43940 seconds