Create tiled chart layout
tiledlayout(
creates
a tiled chart layout for displaying multiple plots in the current figure. The layout has a
fixed m
,n
)m
-by-n
tile arrangement that can display up to
m*n
plots. If there is no figure, MATLAB® creates a figure and places the layout into it. If the current figure contains
an existing axes or layout, MATLAB replaces it with a new layout.
A tiled chart layout contains an invisible grid of tiles that covers the entire figure
or parent container. Each tile can contain an axes for displaying a plot. After creating a
layout, call the nexttile
function to place an axes object into the layout. Then call a plotting function to plot into
the axes.
tiledlayout('flow')
specifies the 'flow'
tile
arrangement for the layout. Initially, there is only one empty tile that fills the entire
layout. As you call nexttile
, the layout reflows as needed to
accommodate the new axes while maintaining an aspect ratio of roughly 4:3 for all the
tiles.
tiledlayout(___,
specifies additional options for the layout using one or more name-value pair arguments.
Specify the options after all other input arguments. For example,
Name,Value
)tiledlayout(2,2,'TileSpacing','compact')
creates a 2-by-2 layout with
minimal spacing between the tiles. For a list of properties, see TiledChartLayout Properties.
tiledlayout(
creates
the layout in the specified parent container rather than in the current figure. Specify the
parent container before all other input arguments.parent
,___)
t = tiledlayout(___)
returns the
TiledChartLayout
object. Use t
to configure
properties of the layout after creating it.