subfigure

バージョン 1.0.0.0 (2.47 KB) 作成者: Steve Hoelzer
Create a figure within a grid-based layout. Like subplot, but for figures.
ダウンロード: 3.4K
更新 2009/3/25

ライセンスの表示

subfigure(m,n,p), or subfigure(mnp), divides the screen into an m-by-n grid of tiles and creates a figure within the pth tile. Tiles are counted along the top row of the screen, then the second row, etc.

If p is a vector, the figure is sized to cover all the subfigure positions listed in p.

subfigure(m,n) creates a figure showing a m-by-n grid layout with tiles labeled in the order that they are numbered by subfigure. This is useful for planning screen layouts, especially when one or more subfigures will span multiple tiles (when p is a vector).

h = subfigure(...) returns a handle to the figure.

Every call to subfigure creates a new figure even if a figure exists at the location specified by m, n, and p. The existing figure is not made current or reused. Existing figures that are overlapped by new subfigures are not deleted. This behavior is dissimilar to subplot.

Example 1: Four non-overlapping figures.

subfigure(2,2,1)
subfigure(2,2,2)
subfigure(2,2,3)
subfigure(2,2,4)

Example 2: Three non-overlapping figures of various sizes.

subfigure(4,4,[1 13])
subfigure(4,4,[2 4])
subfigure(4,4,[6 16])

Example 3: Show the grid for a 3 x 5 layout.

subfigure(3,5)

引用

Steve Hoelzer (2024). subfigure (https://www.mathworks.com/matlabcentral/fileexchange/23426-subfigure), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2008a
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersApp Building についてさらに検索
謝辞

ヒントを得たファイル: SUBFIGURE

ヒントを与えたファイル: The Krouchev Journal-Figure Advanced MATLAB Toolkit

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.0.0.0