help-octave
[Top][All Lists]
Advanced

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

Re: Wait for gnuplot to finish plotting before continuing


From: Michael Goffioul
Subject: Re: Wait for gnuplot to finish plotting before continuing
Date: Fri, 16 May 2008 16:53:11 +0200

You can force redraw by using the "drawnow" command.

Michael.


On Fri, May 16, 2008 at 6:12 AM, Tim Hessint <address@hidden> wrote:
> 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.
>  _______________________________________________
>  Help-octave mailing list
>  address@hidden
>  https://www.cae.wisc.edu/mailman/listinfo/help-octave
>


reply via email to

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