MATLAB uses wrong font and spacing in figure titles

124 views Asked by At

I am running OpenSuse Leap 42.2 and have just recently noticed, that the titles of my MATLAB figures look weird:

enter image description here

As you can see, the spacing is strange and I also have a different font in mind. Any ideas on how to fix this problem?

2

There are 2 answers

0
Rody Oldenhuis On

I don't know why that happens (missing font in OpenSuse?), but you can set the default figure font globally:

set(0, 'DefaultAxesFontName','Cambria');

Include this in your startup.m for convenience.

1
Gustavo On

I had the same problem on linux. What you can do is to set the font for every figure manually to a default matlab font or write a script which does it for you.