Matlab with HiDPI... is still an issue on Linux(?)

조회 수: 45 (최근 30일)
Fabio Garofalo
Fabio Garofalo 2016년 12월 17일
댓글: Nick Evstigneev 2023년 2월 9일
Hi,
I wonder if there is a solution for the small interface issue that Matlab has on HiDPI screen under Linux. It is becoming a real messy working intensively, especially with AppDesigner that suffers also because you cannot change the font size in the editor.
Thanks for the help.
Fabio

채택된 답변

Jacopo Antonello
Jacopo Antonello 2017년 10월 6일
MathWorks suggested the following procedure, which works well for me (R2017b). Quoting from their email:
Tuning a high-DPI Linux system requires two steps
  • Setting the MATLAB scale factor
  • Calibrating the system's DPI
The MATLAB scale factor affects MATLAB desktop and the size/position of windows. The system DPI determines the scale and font size of axes and labels. To set the MATLAB scale factor, please use the following MATLAB commands:
>> s = settings;s.matlab.desktop.DisplayScaleFactor
>> s.matlab.desktop.DisplayScaleFactor.PersonalValue = 1.5
To calibrate the system DPI to match the scale facto, please use the following terminal commands :
% xdpyinfo | grep resolution
resolution: 96x96 dots per inch
% xrandr --dpi 144
The DPI value chosen should be the resolution found with xdpyinfo multiplied by the MATLAB scale factor that was set. In the example, 96 × 1.5 = 144.
MATLAB must be restarted after Step 2.
  댓글 수: 11
Xiao Liu
Xiao Liu 2022년 11월 14일
Ubuntu 20.04 and matlab 2022b. my 4k monitor is scaled by 200% in the system settings. my resolution is 162x161 dots per inch.
s.matlab.desktop.DisplayScaleFactor.PersonalValue = 2
the GUI and editer looks OK, but the datatips and function hints are still not scaled. you can see from the screenshots, they are very tiny.
Nick Evstigneev
Nick Evstigneev 2023년 2월 9일
I found the issue with this:
One needs to adjust the custum font size for the editor back to, say 12, and then in an open editor window just zoom in by pressing Ctrl + as much as you like.
Before:
Now:

댓글을 달려면 로그인하십시오.

추가 답변 (3개)

Abhinuv Pitale
Abhinuv Pitale 2018년 9월 4일
This worked really well for me on Ubuntu 16.04
>> s = settings;s.matlab.desktop.DisplayScaleFactor
>> s.matlab.desktop.DisplayScaleFactor.PersonalValue = 1.5
Additionally, I changed font properties in Preferences -> Font to higher font values.

Brian Chen
Brian Chen 2017년 3월 10일
Has this issue been resolved in R2017a?
  댓글 수: 5
marvin rüppel
marvin rüppel 2017년 5월 17일
THis is terrible. Matlab is extremely inconvenient to use with the extremely small symbols.
Walter Roberson
Walter Roberson 2017년 5월 17일
I recommend you raise the matter as a support case. Any of the volunteers who might happen to know something about the situation would not be permitted to comment about it.

댓글을 달려면 로그인하십시오.


Walter Roberson
Walter Roberson 2016년 12월 17일
No, unfortunately as of R2016b the issue is not resolved.
  댓글 수: 1
Fabio Garofalo
Fabio Garofalo 2016년 12월 17일
편집: Fabio Garofalo 2016년 12월 17일
I accept your answer... both not the fact that matlab developers are underestimating (and they did for LONG time) this issue. I think that it is almost impossible to work for long time with this problem. However, thanks!

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by