subplot
sets the current axes to a chosen cell of the current gridded figure
Syntax
subplot(m,n,p) subplot(mnp)
Arguments
- m, n, p
positive integers
- mnp
an integer with decimal notation
mnp
Description
subplot(m,n,p) or subplot(mnp) virtually grids the graphics window into an m-by-n matrix of sub-windows, and selects the pth sub-window for receiving the forthcoming drawings.
Into the grid, cells are indexed along each row, starting from the top row.
Hence, for instance the last cell of the first row is the p = nth
one. The cell on the row #i and the column #j has the index p=(i-1)*n+j
.
When the selected area matches exactly an existing axes, subplot(…)
just sets it as the current axes, and returns.
Otherwise, subplot(…)
creates an empty axes covering the selected area,
ready to receive forthcoming plotting contents.
Examples
A more complex layout, but still gridable:
See also
- xsetech — set the sub-window of a graphics window for plotting
- newaxes — Creates a new Axes entity
- axes_properties — description of the axes entity properties
Report an issue | ||
<< sda | axes_operations | unzoom >> |