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

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

[Octave-bug-tracker] [bug #65114] axes visible 'on' does not display axe


From: Rik
Subject: [Octave-bug-tracker] [bug #65114] axes visible 'on' does not display axes children
Date: Thu, 4 Jan 2024 11:23:04 -0500 (EST)

Follow-up Comment #5, bug#65114 (group octave):

The bug tracker has been having problems lately.  I tried to offer these
comments yesterday.

The behavior is correct.  Changing the visibility property of a graphics
objects, such as an axes, *only* changes the visibility for that object.  If
you have turned off visibility for a child object, it remains turned off until
you change it specifically.

Try this code


hax = gca;
hl = plot (hax, 1:10, 'o-');
set (hax, 'visible', 'off')
set (hl, 'visible', 'off')
set (hax, 'visible', 'on')
get (hl, 'visible')


Under Matlab and Octave the last line returns 0 (false).

>> But when I turn off the axes, I need to turn off the children one-by-one. 
When I turn on the axes, I need to handle the same book keeping again. 

You can do this in one command which is at least simpler then doing it
object-by-object.


hchild = get (gca, 'children');
set (hchild, 'visible', false);
OR
set (hchild, 'visible', true);




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?65114>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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