Manage and Dock Figures into Group

SETFIGDOCKED docks figures at specified positions in group of figures
2,6K téléchargements
Mise à jour 23 juil. 2012

Afficher la licence

group = setfigdocked('PropertyName1',value1,'PropertyName2',value2,...)
PropertyName:
- GroupName name of group need to be generated
- GridSize scalar or vector quantity, defines number of rows
and columns of cell in group
- SpanCell vector or matrix quantity, size n x 4,
[row col occupiedrows occupiedcols]
build an cell at the position (row, col) in group
cell (GridSize) which occupies "occupiedrows"
rows and "occupiedcols" columns
- Figure handle of figure
- Figindex index position of figure in group cell
- Maximize 0/1, maximize group
- GroupDocked 0/1, dock group

Example:
group = setfigdocked('GroupName','Image and Edges','GridSize',3,'SpanCell',[1 2 2 2]);
im1 = imread('cameraman.tif');
figure;imshow(im1);set(gcf,'Name','Cameraman','NumberTitle','off')
group = setfigdocked('GroupName','Image and Edges','Figure',gcf,'Figindex',2);

figure; edge(im1,'prewitt');set(gcf,'Name','Prewitt method','NumberTitle','off')
group = setfigdocked('GroupName','Image and Edges','Figure',gcf,'Figindex',1);

figure; edge(im1,'roberts');set(gcf,'Name','Roberts method','NumberTitle','off')
group = setfigdocked('GroupName','Image and Edges','Figure',gcf,'Figindex',3);

figure; edge(im1,'roberts');set(gcf,'Name','Roberts method','NumberTitle','off')
group = setfigdocked('GroupName','Image and Edges','Figure',gcf,'Figindex',4);

figure; edge(im1,'roberts');set(gcf,'Name','Roberts method','NumberTitle','off')
group = setfigdocked('GroupName','Image and Edges','Figure',gcf,'Figindex',5);

figure; edge(im1,'canny');set(gcf,'Name','Canny Method','NumberTitle','off')
group = setfigdocked('GroupName','Image and Edges','Figure',gcf,'Figindex',6);

group = setfigdocked('GroupName','Image and Edges','Maximize',1,'GroupDocked',0);

Citation pour cette source

Anh Huy Phan (2024). Manage and Dock Figures into Group (https://www.mathworks.com/matlabcentral/fileexchange/18106-manage-and-dock-figures-into-group), MATLAB Central File Exchange. Récupéré le .

Compatibilité avec les versions de MATLAB
Créé avec R14SP3
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Graphics Objects dans Help Center et MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Publié le Notes de version
1.5.0.0

fix error caused by empty jpanel

1.4.0.0

Fixed error on Matlab 2011, and allow multiple figures docking in the same cell.

1.3.0.0

Fix errors on Matlab v2009 and later releases

1.1.0.0

Fix errors which occur MATLAB v.2009 and later release

1.0.0.0