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

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

[Octave-bug-tracker] [bug #44242] Adding a listener to the "children" pr


From: Pantxo Diribarne
Subject: [Octave-bug-tracker] [bug #44242] Adding a listener to the "children" property has no effect
Date: Tue, 17 Feb 2015 18:34:23 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:35.0) Gecko/20100101 Firefox/35.0

Follow-up Comment #9, bug #44242 (project octave):

Hi,

The attached patch fixes the issue for me. Using listeners on axes children
property is a bit noisy (e.g. Octave internally deletes recreates text labels
when "nextplot" is "replace"):


>> clf ();
>> hax = axes ();
>> fcn = @() disp ("Children modified");
>> addlistener (hax, "children", fcn);
>> plot (rand (3))
Children modified
Children modified
Children modified
Children modified
Children modified
Children modified
Children modified
>> hold all
>> plot (rand (3))
Children modified
Children modified
Children modified
>> h = get (gca (), "children");
>> set (gca (), "children", flipud (h))
Children modified
 

(file #33111)
    _______________________________________________________

Additional Item Attachment:

File name: fix_children_listener.patch    Size:1 KB


    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message posté via/par Savannah
  http://savannah.gnu.org/




reply via email to

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