How to increase font size in the System Identification app window on Mac OS X?

9 次查看(过去 30 天)
I've just started using the System Identification app for a course I am taking. I have an Apple Mac Mini with a 27" Thunderbolt display. When I open the System Identification app it appears very small on the display and the fonts are so small they are straining my eyes.
Screen Shot 2020-01-19 at 16.43.51.png
I know how to increase the font size in the main MATLAB_R2019b application (in MATLAB > Preferences) but it doesn't change the font in the System Identification app. I see Simulink preferences but no font setting there.
Couldn't find anything about fonts in the System Identification App help pages (although there is no search function).
System details
Mac Mini, 2012, OS X Mojave 10.14.6
Apple Thunderbolt Display, 27-inch, (2560×1440 pixels)
MATLAB: R2019b Update 2
System Identification Toolbox 9.11
  2 个评论
Andrew Janke
Andrew Janke 2020-1-31
Looks like their GUI has not been Retina-ized. Probably not much you can do about this on your own. I would report this to MathWorks Support and request a bugfix.
Bill Tubbs
Bill Tubbs 2020-1-31
Thanks Andrew. I suspect you are right. Displays have become more and more high definition over the years and maybe this toolbox has not been upgraded to account for that (b.t.w. note that the Thunderbolt Display was released in 2011 and its 'only' 2560×1440 pixels - not even retina technology!).
The odd thing is you can re-size the window, it's just that the font size doesn't increase when you do.

请先登录,再进行评论。

采纳的回答

Bill Tubbs
Bill Tubbs 2020-2-3
编辑:Bill Tubbs 2020-6-29
I raised a support request and got this response:
I am writing in reference to your Technical Support Case #03998547 regarding 'Fonts in System Identification Toolbox app window too small'.
I understand that you are having difficulty with font sizes in the System Identification Toolbox app window. I am sorry for any inconvenience this has caused.
If you follow this link: https://www.mathworks.com/help/ident/ug/working-with-the-system-identification-tool-gui.html at the bottom of the page under "Modifying idlayout.m" it will note that by customizing this m file you can change the font size.
Being a little more specific so you do not have to hunt through all the code, Line 170 (in R2019b) of the "idlayout.m" file begins the section controlling font size. Changing the value of "scp" will allow you to increase or decrease the font size in the app.
For example if you add "scp = scp / 2;" to the line below "scp=get(0,'screenp');" you will double the font size in the app.
If you would, could you please run "idlayout('fonts',100) in the MATLAB command prompt and tell me the output? Layouts appear to be written such that they query the computer for its pixel density rather than absolute number of pixels in setting the desired font size so I am surprised that you are having issues with your display and I would like to look into it further.
You should also be able to use "idlayout.m" to increase the System Identification App window size for when it opens as well so you do not have to manually resize on each use.
I hope this helps and please let me know if I can help further.
Please preserve the Reference ID in further correspondence on this query. This allows our systems to automatically associate your reply to the appropriate Case.
If you have a new technical support question, please submit a new request here:
Sincerely,
MathWorks Technical Support Department
As decribed above, I made a copy of the file idlayout.m which I found here:
/Applications/MATLAB_R2019b.app/toolbox/ident/idguis/idlayout.m
And put the copy here:
/Applications/MATLAB_R2019b.app/toolbox/idlayout.m
making sure to add this to the MATLAB path (easiest way is to just try running it).
Then I added the following line
scp = scp*3/4
to the script in the following location:
scp=get(0,'screenp');
scp = scp*3/4; % Larger font size
sz1=ceil(12*72/scp);sz2=ceil(10*72/scp);
% if scp>100,sz1=10;sz2=8;else sz1=12;sz2=10;end
if number==100
map=sz1; % Font size for the BEST FIT table in the model output view
elseif number==50
map=sz2; % Font size for the icon texts in the main IDENT window
else
map{1}=sz1; % Font size for Titles and Labels on plots
map{2}='normal'; % Font weight for the same
end
Note, I also changed the value for the 'Font size for the BEST FIT table' to map=sz2.
This seemed to produce about the right font size I was looking for:

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Transform Data 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by