Bug 17296 - par ps keeps decrementing in Rgui graphics windows rescale="fit" after resizing
Summary: par ps keeps decrementing in Rgui graphics windows rescale="fit" after resizing
Status: UNCONFIRMED
Alias: None
Product: R
Classification: Unclassified
Component: Windows GUI / Window specific (show other bugs)
Version: R 3.3.*
Hardware: Other Windows 64-bit
: P5 normal
Assignee: R-core
URL:
Depends on:
Blocks:
 
Reported: 2017-06-24 01:44 UTC by Mark Bravington
Modified: 2017-06-24 01:44 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Bravington 2017-06-24 01:44:22 UTC
After (i) opening an Rgui graphics window with 'windows(rescale="fit")', and

(ii) manually re-sizing that graphics window

then the font keeps shrinking itself whenever par( 'ps') is called--- directly or somehow indirectly. [ The problem showed itself when I was just calling things involving 'cex', not 'ps' itself--- but I can't reproduce that so easily, and I tracked it down to 'ps' as below. ]

Doesn't happen to me with rescale='fixed' or 'R'.

Reproducible example (unless it somehow depends on the exact manual re-sizing...)

windows( rescale='fit')
# Now do a manual re-size of the window
plot( 1, 1)
print( par( ps=par( 'ps'))$ps)
print( par( ps=par( 'ps'))$ps)
print( par( ps=par( 'ps'))$ps)
print( par( ps=par( 'ps'))$ps)
text( 1, 1, 'uh oh')