Differences between figure and uifigure (R2025a onward)
Mostrar comentarios más antiguos
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.
Respuesta aceptada
Más respuestas (1)
the cyclist
el 9 de Jun. de 2025
0 votos
According to the Limitations section in the uifigure documentation, one cannot use the print() function on a uifigure.
Categorías
Más información sobre Develop Apps Programmatically en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!