I have a problem scaling the matlab editor on my new XPS-15 laptop running ubuntu 16.04. I have managed to increase some of the fonts, but the toolbar and plots are still tiny. Is there a way to fix this or will there be support for this in the future?

 Accepted Answer

Walter Roberson
Walter Roberson on 7 Jul 2017

2 votes

Sorry, there is no current way to change the toolbar font size.
To find out about Mathworks future product plans, please contact Sales, who might be willing to discuss the information with you under Non-Disclosure Agreement. (If I knew then I would not be able to say, as I would be under non-disclosure.)

3 Comments

Yan Glina
Yan Glina on 1 May 2018
Edited: Yan Glina on 1 May 2018
This is a significant problem.
Hopefully someone at The MathWorks is listening, because I've seen a number of users asking about this functionality in this forum.
It really is painful to not be able to adjust the toolbar font size, particularly the Editor tab font size, if you work with a large number of files all the time.
To The MathWorks: We've come to expect this kind of treatment (i.e., a deaf ear) from you, but:
a) we don't like it
b) it doesn't seem like a tenable business plan, going forward
We are in 2020 and you don't handle 4K screen scale.
Not even a dark theme selecter (without hacking the stuff).
Congrats, you're on the way to disappear from the market in the next 10 years.

Sign in to comment.

More Answers (2)

Chaitanya Devidas
Chaitanya Devidas on 30 Jun 2022

5 votes

MATLAB supports High DPI screens on Linux starting from R2017b.
To tune a high-DPI Linux system, you need to:
1) Set the MATLAB scale factor
2) Calibrating the system's DPI
The MATLAB scale factor affects MATLAB desktop and the size/position of windows. The system's DPI determines the scale and font size of axes and labels.
The two tuning steps are described below:
1) To set the MATLAB scale factor to, for example, 1.5, please execute the following commands in the MATLAB Command Window:
>> s = settings;s.matlab.desktop.DisplayScaleFactor
>> s.matlab.desktop.DisplayScaleFactor.PersonalValue = 1.5
2) To calibrate the system's DPI to match the scale factor, 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.
I achnowledge Jim from the MathWorks Technical Support Department for sharing these instruction with me.
Here is my solution for this.
While running MATLAB, I decrease the resolution to 1920x1080 end and as soon as I quit MATLAB, i should retrieve my high DPI settings back. Here is a simple bash script I wrote to pertain above solution:
# Bash script for MATLAB scale issues
# Set scaling to remove the zoom used in HDPI screens
xrandr -s 1920x1080
dconf write /com/ubuntu/user-interface/scale-factor "{'eDP-2': 17}"
# Call your program (MATLAB in our case)
sudo matlab
# Wait until the program runs
wait
# Back to original resolution
xrandr -s 3840x2160
dconf write /com/ubuntu/user-interface/scale-factor "{'eDP-1': 17}"
Save the above code with `.sh` suffix for it ti run as a bash file. Run this bash file using:
bash `whatever_file_name.sh`

Categories

Find more on Graphics Performance in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!