bugGNU Octave - Bugs: bug #49167, axis equal; axis square gives...

 
 

bug #49167: axis equal; axis square gives incorrect plot

Submitter:  Muhali <muhali>
Submitted:  Fri 23 Sep 2016 12:39:42 PM UTC
   
 
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 07 Nov 2018 06:02:14 PM UTC, comment #5: 

This no longer fails with a current build from the default branch.
Closing report as fixed.

Markus Mützel <mmuetzel>
Group administrator
Wed 11 Jan 2017 07:04:18 PM UTC, comment #4: 

Attached is a patch that circumvents this issue by temporarily setting "activepositionproperty" to "position".
Although this fixes the issue, I guess there is something wrong in graphics.cc that causes it in the first place. Possibly in or around axes::properties::sync_positions. But I could not (yet) find out where and what exactly is going wrong.
Any help or pointers are greatly appreciated.

(file #39438)

Markus Mützel <mmuetzel>
Group administrator
Fri 23 Sep 2016 03:21:01 PM UTC, comment #3: 

This seems to be a bug of long standing.  The sample code fails in 4.0.3, 3.8.2, but works in 3.6.4.

The difference is so far back that it is probably best to simply debug the existing axis.m code.

Rik <rik5>
Group administrator
Fri 23 Sep 2016 01:21:28 PM UTC, comment #2: 

I can confirm this issue on both 4.0.3 and for 4.2.0-rc2.

It looks like the axes span a lot wider than the boundaries of the figure.
No problems when issuing either the one or the other axis command. It look like only this particular order of commands leads to this weird result.

Also no problems with gnuplot.

Markus Mützel <mmuetzel>
Group administrator
Fri 23 Sep 2016 01:15:33 PM UTC, comment #1: 

The combination of the original submission is the ugly one. The other way round


plot([1 10]); axis square; axis equal;


works as in Matlab R2016a.

Kai Torben Ohlhus <siko1056>
Group Member
Fri 23 Sep 2016 12:39:42 PM UTC, original submission:  

Plotting as follows


plot([1 10]) ;
axis equal ;
axis square ;


obviously fails as the line is placed half outside the window.

Muhali <muhali>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #39438:  bug49167_axis_equal.patch added by mmuetzel (1KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by siko1056 (Posted a comment)
  • -email is unavailable- added by muhali (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 9 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-11-07 mtmiller Carbon-CopyRemoved 80942 -
    2018-11-07 mmuetzel StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2017-01-11 mmuetzel Attached File- Added bug49167_axis_equal.patch, #39438
        Operating SystemGNU/Linux Any
    2016-11-17 mtmiller Release4.2.0-rc2 dev
    2016-09-23 siko1056 Item GroupNone Incorrect Result
        StatusNone Confirmed
        Release4.0.3 4.2.0-rc2

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code