octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #36679] Timing error for multiple plots


From: Michael Godfrey
Subject: [Octave-bug-tracker] [bug #36679] Timing error for multiple plots
Date: Sun, 01 Jul 2012 19:56:02 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20100101 Firefox/13.0.1

Follow-up Comment #9, bug #36679 (project octave):

I tried the for loop, but it did no good.
Then I just put back the 
drawnow();
pause(3);
in the "middle" of the sequence of plots with hold on.
This "fixed" it.
Then I removed the loop (actually I tried loop; pause(3); loop)
and it still worked.

So, this suggests that doing too many plot commands with
hold on and no drawnow(); is important.

Another factor is that this plotting script has a
for fig = 1:3
close all
clear -x fig
hold off        %
figure(fig)     % 
hold on         %
.............
as the start of its outer loop.
The first time through the loop has, as far as I can
remember, always worked.  Sometimes the second time fails,
but most often it is the last time through that fails.
This means that the sequence following the for statement
is not reinitializing plotting.  Some state must be
"leftover" somewhere.

 


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?36679>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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