bugGNU Octave - Bugs: bug #44096, plotboxaspectratio wrong value for...

 
 

bug #44096: plotboxaspectratio wrong value for "axis equal"

Submitted by:  Avinoam Kalma <avinoam>
Submitted on:  Mon 26 Jan 2015 10:10:04 PM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: Need InfoAssigned to: None
Originator Name: AvinoamOpen/Closed: Closed
Release: 3.8.2Operating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Wed 28 Jan 2015 01:33:08 AM UTC, comment #3:

Please avoid quoting from Matlab sources. They own the copyright to their work and we must avoid, even accidentally, putting any non-GPL licensed code in to Octave.

I don't think we need to do anything in this case. The exact ratio is 1.2679 but 1.25 looks good enough to the eye. And for 2-D plots the Z-value of plotboxaspectratio doesn't matter.

I'm going to close the report for now, but it can be re-opened if a problem turns up.

Rik <rik5>
Project Administrator
Tue 27 Jan 2015 09:56:57 PM UTC, comment #2:

You are right.
Using Matlab R2010a, I get

which is not [3 4 4], neither [5 4 4].
Debugging Matlab code, shows in axis.m that plotboxaspectratio is computed in the following way:

and plotboxaspectratio is set bo b.
If you run this in octave you will get a different answer:

because dx,dy,dz are different.

What do you recommend to do now?

Avinoam Kalma <avinoam>
Project Member
Mon 26 Jan 2015 11:23:34 PM UTC, comment #1:

Do you have access to Matlab to test what the actual value is? Matlab's documentation is occasionally wrong, and [3 4 4] will produce a plot that is taller (Y) than it is wide (X) which is not what I see in a sample plot.

Tets code:

Rik <rik5>
Project Administrator
Mon 26 Jan 2015 10:10:04 PM UTC, original submission:

in axis.m, line 204 handles the case of "axis equal"

in Matlab documentation plotboxaspectratio get value of [3 4 4] for
"axis equal"

Avinoam Kalma <avinoam>
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 avinoam (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
    Wed 28 Jan 2015 01:33:08 AM UTCrik5Open/ClosedOpen=>Closed
    Mon 26 Jan 2015 11:23:34 PM UTCrik5StatusNone=>Need Info

    Back to the top


    Powered by Savane 3.1-cleanup1