I posted this over on the octave-help list but it probably should be here. I am having a problem generating plots reliably from within Octave (Windows mingw32 version) where Octave will hang some of the time in the process of generating the plots. After reviewing the threads on the subject, I realized that this is a recognized issue. The proposed fixes involve: - making sure Oct2mat.m is not loaded - renaming Octave\3.2.4_gcc-4.4.0\share\octave\packages\plot-1.0.7\ginput.m so that it doesn't conflict with the ginput.m that is part of Octave - adding sleep(0.05); atline 112 in ...\Octave\3.2.4_gcc-4.4.0\share\octave\3.2.4\m\plot\__gnuplot_ginput__.m
I have just implemented these changes but the problem persists. The problem is that it is difficult to consistently reproduce. It almost never happens on my development laptop (relatively slow computer but consistently happens on the two machine where I have the app deployed (slightly faster computers). Here is the function that generates the plots function status = helio2dummy(test) NbrImageAnalyzed=1; dist(1)=27; NUM=200; counti=[1:12]; count=[1:12]; dista(1:20)=dist(NbrImageAnalyzed)/10; figure(1); subplot(2,1,1); plot(0:11,count'); xlabel('Distance from origin (cm)'); ylabel('Missing dots'); title('Missing dots per cm'); axis ([0 10]); xl=floor(dist(NbrImageAnalyzed)); xxl=(1:xl)/10; yyl(1:xl)=20; subplot(2,1,2); if NUM<500; plot(0:11,counti,dista,1:20,"r",xxl,yyl,"r"); else plot(0:11,counti'); end; axis ([0 10]); xlabel('Distance from origin (cm)'); ylabel('Cumulated missing dots'); title('Missing dots per cm (cumulated)'); T1=strcat('test','missdots.jpg'); print((1),T1,'-djpg'); close all; endfunction I just put it in a loop with cnt=100 and the problem should appear before the loop completes. function status= testloop(cnt) for i = 1:cnt; helio2dummy(1); end endfunction Is there anything else I should do to try and work around this issue? Would increasing the delay in __gnuplot_ginput__.m possibly help? ------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA The must-attend event for mobile developers. Connect with experts. Get tools for creating Super Apps. See the latest technologies. Sessions, hands-on labs, demos & much more. Register early & save! http://p.sf.net/sfu/rim-blackberry-1 _______________________________________________ Octave-dev mailing list Octave-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/octave-dev