Manage and Dock Figures into Group

版本 1.5.0.0 (3.9 KB) 作者: Anh Huy Phan
SETFIGDOCKED docks figures at specified positions in group of figures
2.6K 次下载
更新时间 2012/7/23

查看许可证

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);

引用格式

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. 检索来源 .

MATLAB 版本兼容性
创建方式 R14SP3
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Graphics Objects 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
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