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

Home » Public Forums » archive » Re: drawing lines interactively
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: drawing lines interactively [message #30540 is a reply to message #30538] Fri, 03 May 2002 09:33 Go to previous message
nobody@nowhere.com (S is currently offline  nobody@nowhere.com (S
Messages: 55
Registered: July 2001
Member
you could just use the ANNOTATE widget, which will let you draw text, lines,
etc. on the current graphics window interactively, and export to postscript
or bitmap.

On Fri, 3 May 2002 16:22:06 +0000 (UTC), Marten Blixt
<maarten@blues.phys.uit.no> wrote:
> Hi all,
>
> I have a small problem which I've solved only partially.
>
> I would like to draw a line on an image using the mouse, by clicking on the
> two end points.
> Sofar I can do just that, by using
> TV,testimage,TRUE=1
> CURSOR, x0,y0,/DEVICE,/DOWN
> CURSOR,x1,y1,/DEVICE,/DOWN
> PLOT,[x0,x1],[y0,y1], /DATA,/NOERASE
>
> but then the line appears *after* the two endpoints have been choosen, and I
> would like a "temporary line", between the first point and the current position
> of the cursor, to be shown. This should help me in positioning the last point.
>
> There is probably a simple solution to this, I just haven't found it. Does any
> of you know how?
>
> Many thanks,
> M�rten Blixt


--
Steve S.

steve@NOSPAMmailaps.org
remove NOSPAM before replying
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Findfile finds no files
Next Topic: Re: color bar..

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

Current Time: Fri Oct 10 00:37:52 PDT 2025

Total time taken to generate the page: 0.00566 seconds