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 #62790 is a reply to message #62789] Mon, 06 October 2008 02:22 Go to previous messageGo to previous message
Allan Whiteford is currently offline  Allan Whiteford
Messages: 117
Registered: June 2006
Senior Member
Hi,

Between your plot command and your eof add the line:

cursor,junk1,junk2

so that you have:

<view.sh>
#!/bin/bash
idl<<eof
readcol,'result.dat',format='d,d',a,b
plot,a,b
cursor,junk1,junk2
eof
# <end of view.sh>

the window will appear and then disappear again when you click on the
plot window itself. After this IDL will exit which I guess is what you want.

Thanks,

Allan

eyuchen@gmail.com wrote:
> Hi all,
>
> I am using a binary file which has nothing to do with IDL to generate
> results of simulation.
> After the simulation is done, I would like to view them using IDL.
> However, I am just too
> lazy to key in things like:
> (idl
> readcol, blahblah
> plot, blahblah...)
> each time I run the simulation binary file.
>
> Therefore, I am trying to write a bash script that calls IDL plot
> functions. Here is what I tried:
> <view.sh>
> #!/bin/bash
> idl<<eof
> readcol,'result.dat',format='d,d',a,b
> plot,a,b
> eof
> # <end of view.sh>
>
> It seems that the script is running, *but* I was never able to view my
> data because the
> plot window was closed right after it was generated!
>
> I tried to insert a "stop" after "plot,a,b" and it did not work
> either. IDL returns:
> % Stop encountered: $MAIN$
> and closed the window--exited as usual. (i.e., did not give me the
> opportunity to enter .cont)
>
> Any suggestions?
>
[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:31:44 PDT 2025

Total time taken to generate the page: 0.00456 seconds