Create group object
h = hggroup
h = hggroup(...,'
h = hggroup(ax,...)
For a list of properties, see Group Properties.
h = hggroup creates a
as a child of the current axes and returns its handle,
h = hggroup(...,' creates
Group object with the property values specified
in the argument list.
h = hggroup(ax,...) creates the
in the axes specified by
ax instead of in the current
gca). The option
precede any of the input argument combinations in the previous syntaxes.
Group object can be the parent of any axes,
as well as other
Group objects. Use
to form a group of child objects that can be treated as a single object.
Plot random data and parented the lines to the
hg = hggroup; plot(randn(5),randn(5),'Parent',hg)
The following diagram shows the object hierarchy created by this example.