ax = nexttile
ax = nexttile(span)
ax = nexttile(tilenum)
ax = nexttile(tilenum, span)
ax = nexttile(edge)
ax = nexttile(t, ...)
| Parameter | Description |
|---|---|
| t | TiledChartLayout object. |
| tilenum | Tile position: positive integer index or edge location string ('north', 'south', 'east', 'west'). |
| span | Span of the axes: [r, c] where r is number of rows and c is number of columns to span. |
| Parameter | Description |
|---|---|
| ax | Axes graphics object. |
nexttile creates an axes in the next available tile of the current tiled layout. If no layout exists, one is created automatically.
nexttile(tilenum) creates or returns existing axes at the specified tile number. If the selected tile is the upper-left tile of an existing spanned axes, that axes is returned. If the selected tile is in the middle of a span, the old axes is replaced.
nexttile(span) creates axes spanning multiple tiles, specified as [rows, cols], using the first empty region that can contain the span.
nexttile(tilenum, span) returns an existing axes only when it occupies exactly the requested tile region; otherwise overlapping axes are replaced.
nexttile('north'), nexttile('south'), nexttile('east'), and nexttile('west') create or return one-tile-thick edge axes around the central grid.
t = tiledlayout(2, 2);
for k = 1:4
ax = nexttile;
plot(ax, rand(1, 10));
end
| Version | Description |
|---|---|
| 1.17.0 | initial version |