Manage and Dock Figures into Group

バージョン 1.5.0.0 (3.87 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 Center および MATLAB AnswersGraphics Objects についてさらに検索
謝辞

ヒントを得たファイル: findjobj - find java handles of Matlab graphic objects

ヒントを与えたファイル: Dynamical Systems Toolbox

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