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

Home » Public Forums » archive » Re: Viewing a plot under bash?
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: Viewing a plot under bash? [message #62786 is a reply to message #62771] Mon, 06 October 2008 10:14 Go to previous messageGo to previous message
eyuchen is currently offline  eyuchen
Messages: 8
Registered: February 2008
Junior Member
Hi guys,

All suggestions are working! Thank you all!

One issue to point out: Russell, you might want to use the
oneliner
"while(!mouse.button ne 4) do cursor, xp, yp"
instead of the full-fledged while loop.
If you use the full-fledged loop, the program never returns.
(I don't know why, maybe the folks in itt just forgot to define IDL's
behavior in this circumstance)

And while this all works great, my questions remained:
the "cursor" statement waits the user to click, so the script stopped
to wait my click before it ends, right?
then what's wrong with "stop"? shouldn't it be waiting the user to
type in .cont? I suppose "eof" was not sent
into idl?!

I also tried things like the "pause" function (which I grabbed from
the internet) and read, junk. None of them
worked either.

The response to "read, junk" is "% READ: End of file encountered.
Unit: 0, File: <stdin>"




On Oct 6, 2:27 am, RussellGrew <russell.g...@gmail.com> wrote:
> Could you be sneaky and put in a click grabber after your plot?
>
> In this case, right click on the plot to continue...
>
> while(!mouse.button ne 4) do begin
> cursor, xp, yp, /data, /down
> endwhile
>
> [assuming this does the trick you could obviously alter it to act on a
> key press]
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Return two arrays
Next Topic: Display radar data?

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

Current Time: Wed Oct 08 19:33:38 PDT 2025

Total time taken to generate the page: 0.00438 seconds