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

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

[Octave-bug-tracker] [bug #46039] Refresh when using waitfor


From: Guillaume
Subject: [Octave-bug-tracker] [bug #46039] Refresh when using waitfor
Date: Wed, 23 Sep 2015 13:50:42 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:40.0) Gecko/20100101 Firefox/40.0

URL:
  <http://savannah.gnu.org/bugs/?46039>

                 Summary: Refresh when using waitfor
                 Project: GNU Octave
            Submitted by: gyom
            Submitted on: Wed 23 Sep 2015 01:50:42 PM GMT
                Category: Plotting with OpenGL
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
         Originator Name: Guillaume
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

Run the following and press the OK button - the plot will be updated
immediately:

++
function testwaitfor
F = figure;
H = plot(rand(1,10),'Tag','plot');
h = uicontrol(F,...
  'Style','Pushbutton',...
  'String','OK',...
  'Callback',@clbk);
%waitfor(F);
  
function clbk(varargin)
H = findobj(gcbf,'Tag','plot');
set(H,'ydata',rand(1,10))
--

Now uncomment the waitfor(F) line: if you press the OK button, the figure will
only be updated if you click on it or gives the focus to another window. I
also observe that using Ctrl-C while Octave is in the waitfor results in a
segfault.




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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