octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #64907] Add support for function `tightPositio


From: Liang Tang
Subject: [Octave-bug-tracker] [bug #64907] Add support for function `tightPosition`
Date: Thu, 23 Nov 2023 09:00:05 -0500 (EST)

Follow-up Comment #13, bug #64907 (project octave):


@pantxo,

I would be honest here.  I don't agree to this compatibility.  For example, to
get 4, we can do (5-1), (2+2), etc.  If matlab chooses (2+2), I really don't
mind to follow because the end result is 4, which is the priority.  The
returned value from axes position at the presence of active axis square is
incorrect.  From my view point, we are agreeing to 10=(2+2).   But, let me not
continue on this.  You may have other demands to meet.  

I don't have any understanding of the interaction of Octave plotting codes. 
So, I don't know if other plotting features may result in the same observation
as we have seen from axis square.  I also don't know why axes property value
must be different than what tightposition outputs. If the valid reason is for
software internal and cannot be hidden from the users, you should have the say
for what to do.  

>From some trials, I do see that the axis properties like equal, square are
mutually exclusive.  But the current documentation does not indicate so. For
example, it is very clear why the linear and log scale must be mutually
exclusive.  But it is unclear (to me) why equal and square need to be mutually
exclusive.  I agreed in the prior comments not to look into this.    So, this
reply is specific to square only. Prior to when I stopped trial runs, only the
combination of square and position showed differences.  My trials are not
meant to be a "complete testing".   

This is my proposal:  add a short paragraph after the current documentation.
Doing it this way shifts the burden to the users.   English is never one of my
strengths.  Feel free to change/remove as you want.   I am not in the position
to fill in the right words for the "????" below.  

Thanks,
 
position: four-element vector, def. [0.1300 0.1100 0.7750 0.8150]
Specify the position of the plot excluding titles, axes, and legend. The four
elements of the vector are the 
coordinates of the lower left corner and width and height of the plot, in
units normalized to the width and 
height of the plot window. For example, [0.2, 0.3, 0.4, 0.5] sets the lower
left corner of the 
axes at (0.2, 0.3) and the width and height to be 0.4 and 0.5 respectively.
See outerposition property. 

When axis square immediately precedes the axes position inquiry, position
returns ????. ????? may be utilized to obtain 
the actual plot window coordinates.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?64907>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]