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

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

[Octave-bug-tracker] [bug #65096] getpixelposition with REL_TO_FIG=true


From: Liang Tang
Subject: [Octave-bug-tracker] [bug #65096] getpixelposition with REL_TO_FIG=true
Date: Sat, 30 Dec 2023 11:30:10 -0500 (EST)

URL:
  <https://savannah.gnu.org/bugs/?65096>

                 Summary: getpixelposition with REL_TO_FIG=true
                   Group: GNU Octave
               Submitter: lt1234
               Submitted: Sat 30 Dec 2023 04:30:08 PM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: lt1234
        Originator Email: 
             Open/Closed: Open
                 Release: 8.2.0
         Discussion Lock: Any
        Operating System: Microsoft Windows
           Fixed Release: None
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Sat 30 Dec 2023 04:30:08 PM UTC By: Liang Tang <lt1234>
Example from matlab web site below.  With REL_TO_FIG=true, getpixelposition
returns a left lower corner x, y pair that is absolute xy (or relative to the
parent of the figure), not the relative xy relative to the figure.  Thanks.  

f = figure('Position',[300 300 300 200]);
p = uipanel('Position',[.2 .2 .6 .6]);
btn = uicontrol(p,'Style','PushButton', ...
     'Units','Normalized', ...
     'String','Push Button', ...
     'Position',[.1 .1 .5 .2]);
     
pos = getpixelposition(btn,true)
ans =

   379.600   355.080    88.000    22.960
     








    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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