How to get Figure Container's Properties?
Mostra commenti meno recenti
How can I get and set the properties of a Figure Container introduced in MATLAB 2025?
For example, I want to change the window state of a Figure Container (not the figure window state) to “Maximized” from a script.
Risposte (2)
Naoto Nagaoka
il 30 Ott 2025
4 voti
1 Commento
Andrew
il 26 Gen 2026
I agreee with the OP. In my opinion this is a step back in functionality and ease of use. If matlab wants to put all figures into a 'container', that's fine, but they implemented it such that users no longer have the same level of control over their figures, i.e. having to manually dock the container every time, etc.
Nothing has changed about the figures themselves, they are just embedded in a new object that users do not have the same level of access to.
Taylor
il 22 Ott 2025
You can still just set the window state to maximized. It will force the figure container to be maximized.
figure("WindowState", "maximized")
Or are you trying to maximize the container without changing the size of the figure itself? If so, I do not believe that is possible.
3 Commenti
Naoto Nagaoka
il 23 Ott 2025
Spostato: Walter Roberson
il 30 Ott 2025
Taylor
il 23 Ott 2025
Spostato: Walter Roberson
il 30 Ott 2025
You can edit the default properties. See this if you want the properties to persist across MATLAB sessions.
Fred Dilkes
il 8 Dic 2025
According to the 2025a documentation the figure 'Position' property of a docked figure is "relative to its container."
Is there any reliable way to find the position of a docked figure relative to groot?
Categorie
Scopri di più su Creating, Deleting, and Querying Graphics Objects in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!