Differences between figure and uifigure (R2025a onward)
Show older comments
Now that Java graphics are gone starting in R2025a, is there any strict distinction between figure() and uifigure()? Some default settings are different, but these can be easily changed later on. For example, one can enable handle visibility in a uifigure to use standard plot functions. Objects created with either function have the same class (matlab.ui.Figure), and it seems like various tools (such as exportapp) have been updated to support both.
The only difference I have found thus far is that figures have a new toolbar whereas uifigures retain a more minimalist form. Even after enabling Toolbar/Menubar in a uifigure, the result is closer to a more traditional MATLAB figure. Personally, I find the new figure toolbar hideous.
For some years now, the advice has been to use uifigures for "apps" and figures for plotting. If this is how figures are going to look from here on out, I will be doing everything in uifigures.
Accepted Answer
More Answers (1)
the cyclist
on 9 Jun 2025
0 votes
According to the Limitations section in the uifigure documentation, one cannot use the print() function on a uifigure.
Categories
Find more on Develop uifigure-Based Apps in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!