bugGNU Octave - Bugs: bug #34462, Current axes should be listed 1st...

 
 

bug #34462: Current axes should be listed 1st in the figure's children

Submitted by:  Ben Abbott <bpabbott>
Submitted on:  Sun 02 Oct 2011 11:11:32 PM UTC  
 
Category: PlottingSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: FixedAssigned to: None
Originator Name: Ben AbbottOpen/Closed: Closed
Release: devOperating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 27 Sep 2012 08:48:28 PM UTC, comment #4:

You are correct. The problem I saw before is gone.

Ben Abbott <bpabbott>
Project Member
Thu 27 Sep 2012 08:40:42 PM UTC, comment #3:

Great. This is the way Octave is already behaving so no need to change. I will close this report now.

Rik <rik5>
Project Administrator
Thu 27 Sep 2012 08:33:41 PM UTC, comment #2:

Rik,

If a user types

(s)he would expect the plot to be placed in the new figure. To be consistent, the code below should place the plot in the newly created axes.

Thus, I think the proper behavior is

Ben Abbott <bpabbott>
Project Member
Thu 27 Sep 2012 06:47:41 PM UTC, comment #1:

Ben, is this still an issue?

According to the Matlab documentation (http://www.mathworks.com/help/matlab/ref/axes.html), axes (h) will definitely set the current axis to h and it will definitely be listed first in the children of the current figure.

What is not clear, and really could be just an implementation decision, is whether axes() by itself should switch the current axis to the newly created one. In effect, the current code does

but it would be easy to save and restore the current axis if that is the desired behavior.

Rik <rik5>
Project Administrator
Sun 02 Oct 2011 11:11:32 PM UTC, original submission:

The figure's children appear to be listed in the reverse order they are created. However, if the current axes is changed, it is always listed first. Example below.

Perhaps a listener should be added the the "currentaxes" property of each figure as they are created.

Ben Abbott <bpabbott>
Project Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by bpabbott (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 27 Sep 2012 08:40:42 PM UTCrik5StatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1