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

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

[Octave-bug-tracker] [bug #31884] fltk print problem


From: Daisuke TAKAGO
Subject: [Octave-bug-tracker] [bug #31884] fltk print problem
Date: Fri, 24 Dec 2010 06:10:31 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; ja; rv:1.9.1.15) Gecko/20101028 Iceweasel/3.5.15 (like Firefox/3.5.15) GTB7.1

Follow-up Comment #11, bug #31884 (project octave):


Hi, Ben.
(Sorry for my late reply. I got a cold and was in bed.)

After pulling your changeset,
The following code occurs flicker and changing size each time through the
loop. 

 %test1
 figure(1);
 for f=1:20
 image(floor(255*rand(32,64)));
 colormap(gray(256));
 axis image
 axis off
 drawnow
 eval(sprintf('print -dpng /tmp/%03d.png',f))
 end 
 
-----------------------------
 when i remove "drawnow", it redraws the figure window  each time through the
loop. 
 it does not occur flicker and changing size.
  
 %test2
 figure(1);
 for f=1:20
 image(floor(255*rand(32,64)));
 colormap(gray(256));
 axis image
 axis off
 eval(sprintf('print -dpng /tmp/%03d.png',f))
 end 

-----------------------------
when i remove "print" , it works well.

 %test3
 figure(1);
 for f=1:20
 image(floor(255*rand(32,64)));
 colormap(gray(256));
 axis image
 axis off
 drawnow
 end 

--------------------------------
when i remove "print" and "drawnow" , it shows the last image only.

 %test4
 figure(1);
 for f=1:20
 image(floor(255*rand(32,64)));
 colormap(gray(256));
 axis image
 axis off
 end 

 --------------------------------
when i replace "drawnow" to "pasue(1)", it occurs flicker and changing size
each time through the loop. 
"pause(1)" does not work. it finished soon.

 %test5
 figure(1);
 for f=1:20
 image(floor(255*rand(32,64)));
 colormap(gray(256));
 axis image
 axis off
 pause(1)
 eval(sprintf('print -dpng /tmp/%03d.png',f))
 end 

 --------------------------------
when i replace "drawnow" to "pasue(1)", and remove "print".  it redraws the
figure window  each time through the loop. 
"pause(1)" works well. it takes about 20 sec.

 %test6
 figure(1);
 for f=1:20
 image(floor(255*rand(32,64)));
 colormap(gray(256));
 axis image
 axis off
 pause(1)
 end 

-------
Daisuke

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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