bugGNU Octave - Bugs: bug #66005, 'extent' text() property is...

 
 

bug #66005: 'extent' text() property is incorrect when using O/S display scaling

Submitter:  None
Submitted:  Fri 19 Jul 2024 10:49:10 PM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Confirmed Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  * Open Release:  * 9.2.0
Operating System:  * Any Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 24 Jul 2024 12:36:50 AM UTC, comment #1: 

Confirmed.  And my system is a Linux one so this is not just a peculiarity of MS Windows.  It seems to occur only when display scaling is used.

Rik <rik5>
Group administrator
Fri 19 Jul 2024 10:49:10 PM UTC, original submission:  

After entering h=text() the values reported by get(h,'extent') are incorrect.


figure(1)
axis([-1000,1000,-1000,1000])
h=text(500,500,"Some text");
get(h,'units')
ans = data

get(h,'extent')
ans =

   333.333   327.062    58.727    12.542


On my system (with a 4k monitor and "Change the size of text, apps, and other items" set to 150% in Windows 10 Settings) [x,y] is off by a multiplicative factor of approximately (although not exactly) 1.5 and the width by a factor of approximately 3.

Anonymous

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

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 rik5
  •  

    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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-07-24 rik5 Item GroupNone Incorrect Result
        StatusNone Confirmed
        Operating SystemMicrosoft Windows Any
        Summary'extent' text() property is incorrect 'extent' text() property is incorrect when using O/S display scaling
        Carbon-Copy- Added pantxo

    Back to the top

    Powered by Savane 3.13-5190.
    Corresponding source code