Hello As explained by Yair Altman it is possible to set a Layout of docked figures, for example as follows:
desktop = com.mathworks.mde.desk.MLDesktop.getInstance; myGroup = desktop.addGroup('myGroup'); desktop.setGroupDocked('myGroup', 0); myDim = java.awt.Dimension(5, 2); desktop.setDocumentArrangement('myGroup', 2, myDim) figH = zeros(1, 10); for iFig = 1:10 figH(iFig) = figure('WindowStyle', 'docked', ... 'Name', sprintf('Figure %d', iFig), ... 'NumberTitle', 'off'); set(get(handle(figH(iFig)), 'javaframe'), ... 'GroupName', 'myGroup'); end
See related question here . Do you know a way how to get these properties: DocumentArrangement, DocumentColumnWidths, DocumentRowHeights, DocumentRowSpan...?
If one could retrieve these properties, one could save some user defined layout. Many thanks
1 Comment
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/123514-is-it-possible-to-save-get-a-layout-of-docked-figures#comment_204876
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/123514-is-it-possible-to-save-get-a-layout-of-docked-figures#comment_204876
Sign in to comment.