bugGNU Octave - Bugs: bug #49038, "axis equal" should not...

 
 

bug #49038: "axis equal" should not change aspect ratio of axes

Submitted by:  Markus Mützel <mmuetzel>
Submitted on:  Fri 09 Sep 2016 04:24:01 PM UTC  
 
Category: PlottingSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name: Open/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.

 

Fri 16 Sep 2016 09:11:12 PM UTC, comment #3:

I pushed your patch. I made one small change which was to rename the variable axisPos written in CamelCase to axis_pos. jwe hates CamelCase.

Rik <rik5>
Project Administrator
Fri 09 Sep 2016 05:13:55 PM UTC, comment #2:

To be a little clearer: Matlab ignores it if "x/y/zlimmode" is set to "manual" and changes the property to "auto" to be able to keep the aspect ratio of the axes. The proposed patch does the same.

Markus Mützel <mmuetzel>
Project Member
Fri 09 Sep 2016 04:31:08 PM UTC, comment #1:

Attached the changeset.

Matlab also seems to ignore if "x/y/zlimsmode" is set to "manual" to be able to keep the aspect ratio of the axes:

(file #38460)

Markus Mützel <mmuetzel>
Project Member
Fri 09 Sep 2016 04:24:01 PM UTC, original submission:

Calling "axis equal" should adapt the spacing of x/y/zlims such that they are equal. The axes aspect ratio, size and position should not change.
Example (see also bug #49031):

I will attach a patch as soon as I have a bug number.

Markus Mützel <mmuetzel>
Project Member

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #38460:  bug49038_axis_equal.patch added by mmuetzel (2KiB - text/x-patch)

 

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 mmuetzel (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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 16 Sep 2016 09:11:12 PM UTCrik5StatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Fri 09 Sep 2016 04:31:08 PM UTCmmuetzelAttached File-=>Added bug49038_axis_equal.patch, #38460

    Back to the top


    Powered by Savane 3.1-cleanup1