Skip to content

subplot

plot · scripts/plot/util/subplot.m

subplot (m, n, p)
subplot (mnp)
subplot (m, n, [p1 p2 ...])
subplot (h)
subplot ("Position", [left bottom width height])
h = subplot (..., "Name", Value, ...)
  Place an axes in cell P of an M-by-N grid in the current figure (cells
  are numbered along the rows from the top left; a vector P spans the
  bounding box of its cells) and make it current.  Axes that already
  sit exactly in that place are reused, other axes overlapping the new
  one are deleted.  SUBPLOT (H) makes the axes H current.  The words
  "replace" and "align" are accepted and ignored; further Name/Value
  pairs are set on the axes.