bugGNU Octave - Bugs: bug #49031, Axes "position" wrong...

 
 

bug #49031: Axes "position" wrong after "axis equal"

Submitted by:  Pantxo Diribarne <pantxo>
Submitted on:  Thu 08 Sep 2016 03:13:50 PM UTC  
 
Category: Plotting with OpenGLSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: InvalidAssigned 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.

 

(Jump to the original submission Jump to the original submission)

Fri 09 Sep 2016 04:54:19 PM UTC, comment #7:

@Markus: happy you jumped in.

Closing this report as invalid.

Pantxo Diribarne <pantxo>
Project Member
Fri 09 Sep 2016 04:33:47 PM UTC, comment #6:

I opened a new bug for this issue (bug #49038) and attached a changeset there that should fix the issue that "axis equal" affects the aspect ratio of the axes.

Pantxo, I hope I didn't interfere.

Markus Mützel <mmuetzel>
Project Member
Fri 09 Sep 2016 09:22:48 AM UTC, comment #5:

The problem might be that "plotboxaspectratio" cannot be set or is overwritten each time it is set (in graphics.cc?).

Setting the "plotboxaspectratio" is ignored even if "plotboxaspectratiomode" is correctly set to "manual".

Markus Mützel <mmuetzel>
Project Member
Thu 08 Sep 2016 09:34:38 PM UTC, comment #4:

There's definitely something weird here. It doesn't seem to me that axis equal should change the position property at all. axis() is about changing the scale of the xticks.

Rik <rik5>
Project Administrator
Thu 08 Sep 2016 08:52:41 PM UTC, comment #3:

Sorry for the noise! I found this function [1], written for matlab, to perfectly predict the actual onscreen position in Octave too :-).

In short, the position in 2D is actually the rectangle into which you have to make your axes fit. When pbaspect and daspect are "auto" the axes fills the whole box, but when one is manual this is not the case anymore.

I'll close this report and eventually submit another one about the fact that "axis equal" still don't behave the same in ML and Octave.

[1] https://github.com/kakearney/plotboxpos-pkg

Pantxo Diribarne <pantxo>
Project Member
Thu 08 Sep 2016 04:33:11 PM UTC, comment #2:

>>Does anything happen to the 'position' settings if you resize the window?


No.

Pantxo Diribarne <pantxo>
Project Member
Thu 08 Sep 2016 03:52:08 PM UTC, comment #1:

Equal axis mode should adjust position based upon the sizing of the figure window, i.e., the aspect ratio, whether this reflects in the properties or not. Does anything happen to the 'position' settings if you resize the window? (We know gnuplot toolkit can't affect the property values because there currently is no feedback mechanism.)

Dan Sebald <sebald>
Thu 08 Sep 2016 03:13:50 PM UTC, original submission:

After calling "axis equal", the length of x and y axes is changed onscreen but the "position" property of the axes does not reflect this change:

I tested this example in Matlab: neither the axes "position" property nor the onscreen axes position are changed.

IMHO not being able to trust the axes "position" property is a pretty severe bug.

Pantxo Diribarne <pantxo>
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 mmuetzel (Posted a comment)
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by sebald (Posted a comment)
  • -unavailable- added by pantxo (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 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 09 Sep 2016 04:54:19 PM UTCpantxoStatusNone=>Invalid
      Open/ClosedOpen=>Closed
    Thu 08 Sep 2016 09:34:38 PM UTCrik5StatusInvalid=>None
      Open/ClosedClosed=>Open
    Thu 08 Sep 2016 08:52:41 PM UTCpantxoStatusNone=>Invalid
      Open/ClosedOpen=>Closed
    Thu 08 Sep 2016 04:33:10 PM UTCpantxoCategoryPlotting=>Plotting with OpenGL

    Back to the top


    Powered by Savane 3.1-cleanup1