help-octave
[Top][All Lists]
Advanced

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

Wait for gnuplot to finish plotting before continuing


From: Tim Hessint
Subject: Wait for gnuplot to finish plotting before continuing
Date: Fri, 16 May 2008 14:12:35 +1000
User-agent: Thunderbird 2.0.0.14 (X11/20080421)

Hi,

I need to plot inside a loop so I can see a plot evolving over time. The old octave would wait for plotting to finish before moving on to the next command, but octave-3 doesn't wait for the plot to finish. The loop goes faster than gnuplot can plot so I don't see anything except for the last plot. For example, try

for i = 1:10
        plot(1:i)
        i
end

and you will only see it count to 10 and then plot 1:10 instead of plotting 1:1, 1:2, 1:3, etcetera. I can insert sleep(1) commands to make it work but this is a poor solution.

So basically I'd like to tell octave to wait for gnuplot to finish before continuing.


reply via email to

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