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

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

[Octave-bug-tracker] [bug #43282] annotation function missing


From: Pantxo Diribarne
Subject: [Octave-bug-tracker] [bug #43282] annotation function missing
Date: Sat, 21 Feb 2015 11:02:24 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:35.0) Gecko/20100101 Firefox/35.0

Follow-up Comment #18, bug #43282 (project octave):

Hi,

I performed the following tests in Matlab 2013a:


clf;
ca1 = axes ();
ch = allchild (gcf ());
pos = find (ch == ca1);
h = annotation ('rectangle'); # Annotation drawn on top of the first axes
hover = get (h, 'parent');
ch = allchild (gcf ());
pos = [find(ch == ca1) find(ch == hover)] #-> [2 1]
ca2 = axes (); # Second axes drawn below the annotation
ch = allchild (gcf ());
pos = [find(ch == ca1) find(ch == hover) find(ch == ca2)] # ->[3 1 2] 
axes (ca1); # First axes now covers the annotation
ch = allchild (gcf ());
pos = [find(ch == ca1) find(ch == hover) find(ch == ca2)] # ->[1 2 3] 
set (ca2, 'handlevisibility', 'off');
axes (ca2); # Second axes now covers the annotation
ch = allchild (gcf ());
pos = [find(ch == ca1) find(ch == hover) find(ch == ca2)] # ->[2 3 1] 
h = annotation ('rectangle'); # Annotations are back on top
ch = allchild (gcf ()); 
pos = [find(ch == ca1) find(ch == hover) find(ch == ca2)] # ->[3 1 2]


So my previous modifications of axes.m are not quite right ... the call form
"axes (HAX)" restacks the figure children so that the annotation axes may be
covered. This call form also restacks axes with "handlevisibility" == "off".
I attached a changeset that makes Octave behave as Matlab in all the above
situations. 

(file #33145)
    _______________________________________________________

Additional Item Attachment:

File name: fix_axes_behavior.patch        Size:3 KB


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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