Re: How to pause until plot window closed?
- From: merritt@xxxxxxxxxxxxxxxxxxxxxxxxxxx
- Date: Tue, 22 Jul 2008 09:44:55 -0700 (PDT)
In article <ns6dnf9ElM-yYhjVnZ2dnUVZ_jKdnZ2d@xxxxxxxxxxx>,
Grant Edwards <grante@xxxxxxxx> wrote:
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.
Make a separate subroutine file that loops on 'pause mouse key'.
pause mouse key
if (MOUSE_KEY != 27) reread
The call it from the main script
print "Hit <esc> to exit"
load "loop_til_escape"
--
Ethan A Merritt
.
- Follow-Ups:
- Re: How to pause until plot window closed?
- From: Grant Edwards
- Re: How to pause until plot window closed?
- References:
- How to pause until plot window closed?
- From: Grant Edwards
- How to pause until plot window closed?
- Prev by Date: Re: Compile CVS with GIF_ANIMATION
- Next by Date: Re: Compile CVS with GIF_ANIMATION
- Previous by thread: How to pause until plot window closed?
- Next by thread: Re: How to pause until plot window closed?
- Index(es):
Relevant Pages
|