How to get Figure Container's Properties?

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.

Respuestas (2)

Naoto Nagaoka
Naoto Nagaoka el 30 de Oct. de 2025

4 votos

MATLAB Support has responded, stating that there is currently no way for users to access the properties of a Figure container. Therefore, it is not possible to modify the properties of a Figure container at this moment.
I have requested that a method be added to access these properties.
I will await the new version.

1 comentario

Andrew
Andrew el 26 de En. de 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.

Iniciar sesión para comentar.

Taylor
Taylor el 22 de Oct. de 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 comentarios

Naoto Nagaoka
Naoto Nagaoka el 23 de Oct. de 2025
Movida: Walter Roberson el 30 de Oct. de 2025
TThank you for your reply.
I would like to know how to get/set the properties of a Figure Container.
I want to use a script to perform actions like “maximize” or “minimize” on a Figure Container containing multiple figures all at once.
Taylor
Taylor el 23 de Oct. de 2025
Movida: Walter Roberson el 30 de Oct. de 2025
You can edit the default properties. See this if you want the properties to persist across MATLAB sessions.
Fred Dilkes
Fred Dilkes el 8 de Dic. de 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?

Iniciar sesión para comentar.

Categorías

Más información sobre Creating, Deleting, and Querying Graphics Objects en Centro de ayuda y File Exchange.

Productos

Versión

R2025b

Preguntada:

el 20 de Oct. de 2025

Comentada:

el 26 de En. de 2026

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by