[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Wait for a plot to be closed

From: Shaun Jackman
Subject: Wait for a plot to be closed
Date: Wed, 30 Jun 2010 11:00:12 -0700


I'm trying to use the following shebang script to produce a scatter plot
from the command line:

==> scatterplot <==
#!/usr/bin/octave -qf
xn = load(argv(){1});
x = xn(:,1);
n = xn(:,2);
plot(x, n, 'x')

octave exits at the end of the script, which closes the plot window. I'd
like octave to wait until the plot window has been closed. If I add a
call to waitforbuttonpress at the end, I can prevent the window from
closing, but I can't click on the plot for panning and zooming.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]