help-octave
[Top][All Lists]
Advanced

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

RE: Problem with Pliot in 3.2.4


From: Ian Journeaux
Subject: RE: Problem with Pliot in 3.2.4
Date: Tue, 2 Aug 2011 09:00:42 -0500

> I am having a problem generating plots reliably from within Octave. 
> Where Octave will hang. 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 this changes and am monitoring to see if the 
> problem is resolved. Is there anything else I should do to try and 
> work around this issue.
> 
> Take Care
> Ian

>>Can you give us an example of the problem you are having?
>>Preferably a short m-file script and the result.

Ben
Last night I took the time to reduce my code to a snippet that seems to
replicate my problem.

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
100.

function status= testloop(cnt)
        for i = 1:cnt;
                helio2dummy(1);
        end
endfunction

On my laptop (slower)  it usually executes without failure. On the lab
machine (faster), it will fail at some point.

Hope this helps point in the direction of the problem.
Take Care
Ian





reply via email to

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