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

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

[Octave-bug-tracker] [bug #52621] root graphics object property "current


From: Rik
Subject: [Octave-bug-tracker] [bug #52621] root graphics object property "currentfigure" does not respect figure "handlevisibility" property
Date: Fri, 8 Dec 2017 01:22:25 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

Update of bug #52621 (project octave):

                  Status:                    None => Confirmed              
        Operating System:       Microsoft Windows => Any                    
                 Summary: figure property handlevisibility is not respected =>
root graphics object property "currentfigure" does not respect figure
"handlevisibility" property

    _______________________________________________________

Follow-up Comment #1:

Confirmed.  Although the details are a little bit intricate and I have
retitled this bug report to reflect that.

Octave does implement handlevisibility as shown below.


>> close all hidden
>> h1 = figure (1);
>> h2 = figure (2);
>> get (0, 'children')
ans =

   2
   1

>> set (1, 'handlevisibility', 'off')
>> get (0, 'children')
ans =  2


The problem is that while the figure is removed from the list of children, it
is not necessarily removed from the "currentfigure" property.

I can get your example code to work by forcing the "currentfigure" property to
be empty.


>> close all hidden
>> f = figure('handlevisibility','off');
>> set (0, 'currentfigure', [])
>> plot (1:10, 1:10)
>> findall (0, 'type', 'figure')
ans =

   2
   1




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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