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

 
 

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

Submitted by:  Muhali <muhali>
Submitted on:  Fri 23 Sep 2016 12:39:42 PM UTC  
 
Category: Plotting with OpenGLSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: ConfirmedAssigned to: None
Originator Name: Open/Closed: Open
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.

 

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>
Project Member
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>
Project 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>
Project Member
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

works as in Matlab R2016a.

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

Plotting as follows

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 File(s):
   
   
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
  • -unavailable- added by mtmiller (Updated the item)
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by mmuetzel (Posted a comment)
  • -unavailable- added by siko1056 (Posted a comment)
  • -unavailable- added by muhali (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 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 11 Jan 2017 07:04:18 PM UTCmmuetzelAttached File-=>Added bug49167_axis_equal.patch, #39438
      Operating SystemGNU/Linux=>Any
    Thu 17 Nov 2016 04:53:38 AM UTCmtmillerRelease4.2.0-rc2=>dev
    Fri 23 Sep 2016 01:15:33 PM UTCsiko1056Item GroupNone=>Incorrect Result
      StatusNone=>Confirmed
      Release4.0.3=>4.2.0-rc2

    Back to the top


    Powered by Savane 3.1-cleanup1