I just tried this on a different PC with Matlab 2024a and it looks exactly like the 2023b example above. So it's definately a setting somewhere that I'm overlooking.
UIFigure appearance (scaling) change between 2023b and 2024a
25 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Joe Vinciguerra
am 10 Jun. 2024
Beantwortet: Joe Vinciguerra
am 24 Jun. 2024
I wrote an app in 2023b, but after installing 2024a the figure doesn't appear the same, and some of my UI controls actually fall off the figure in 2024a. Below is a simplified example of the issue.
Here is the code I ran in both versions:
fig = uifigure(Name="This is in 2023b");
% fig = uifigure(Name="This is in 2024a");
lbl = uilabel(fig);
lbl.Text = "This is a label";
lbl.Position = [20 200 100 60];
Here is a screenshot of the outputs side-by-side:
As you can see the font and the spacing in 2024a is slightly larger, as if it is scaled differently. And it's not just with UILables, the size and spacing is larger for all objects in 2024a compared to 2023b.
I reset all default groot settings with reset(groot, "default")
I recursivly cleared all personal settings with [setting].clearPersonalValue
But I still get this result.
It's a fairly large and complex app with a lot of ui controls and I don't want to rewrite it because if this.
Is there a setting somewhere I'm overlooking, or something else I'm missing?
3 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Develop uifigure-Based Apps finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!