Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Graphics > Gnuplot interactive function plotter > How to pause un...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 3420 of 3499
Post > Topic >>

How to pause until plot window closed?

by Grant Edwards <grante@[EMAIL PROTECTED] > Jul 22, 2008 at 10:39 AM

I want a shell script to plot a file and then allow the user to
manipulate the plot using the mouse (zoom, unzoom, etc.), and I
can't figure out how to do that.

  gnuplot <<EOF
  plot "$$tmp.dat" with points
  pause -1
  EOF

That exits immediately.

If I replace the -1 with a large number (say, 9999), then the
plot window is unresponsive.   If I do a "pause mouse key", then
the plot window closes when the user tries to un-zoom.  If I do
"gnuplot -persist" zooming with the mouse doesn't work.

How do I wait until the plot window closes?

Alternatively, how do I just pause forever so that the user can
kill the process with a SIGINT when he's done?

-- 
Grant Edwards                   grante             Yow! ... bleakness
                                  at               ... desolation ...
plastic
                               visi.com            forks ...
 




 4 Posts in Topic:
How to pause until plot window closed?
Grant Edwards <grante@  2008-07-22 10:39:27 
Re: How to pause until plot window closed?
merritt@[EMAIL PROTECTED]  2008-07-22 09:44:55 
Re: How to pause until plot window closed?
Grant Edwards <grante@  2008-07-22 13:24:49 
Re: How to pause until plot window closed?
merritt@[EMAIL PROTECTED]  2008-07-22 13:12:45 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Sep 7 11:22:06 CDT 2008.