Figure Docking (group)

191 vues (au cours des 30 derniers jours)
Philip
Philip le 2 Oct 2011
Commenté : Debt le 4 Mar 2022
What I'd like to do is take multiple figures and dock them all in one panel. Ideally I would dock them all in one figure Window, but I'm open to docking them in Matlab's main window (which I know how to do with the WindowStyle property) and then undock that group as a whole (which I can do with the Undock Figures button), but I dont know how to do it programmatically. Thanks for any thoughts or help.
This can be in any version of Matlab 2009b or newer.

Réponses (2)

Daniel Shub
Daniel Shub le 3 Oct 2011
I think figures can only be docked to the main MATLAB window. You cannot dock a figure into another figure. The property you are looking to do this programmatically is "WindowStyle":
h = figure;
set(h, 'WindowStyle', 'Docked');

Grzegorz Knor
Grzegorz Knor le 3 Oct 2011
You can try this function:
Warning: This code heavily relies on undocumented and unsupported Matlab functionality. It works on Matlab 7.4, but use at your own risk!
  1 commentaire
Debt
Debt le 4 Mar 2022
thank you

Connectez-vous pour commenter.

Catégories

En savoir plus sur Graphics Objects dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by