Create group object
h = hggroup
h = hggroup(...,'PropertyName
',propertyvalue,...)
h = hggroup(ax,...)
For a list of properties, seeGroup Properties.
h = hggroup
creates aGroup
object as a child of the current axes and returns its handle,h
.
h = hggroup(...,'
creates aPropertyName
',propertyvalue,...)Group
object with the property values specified in the argument list.
h = hggroup(ax,...)
creates theGroup
object in the axes specified byax
instead of in the current axes (gca
). The optionax
can precede any of the input argument combinations in the previous syntaxes.
AGroup
object can be the parent of any axes, as well as otherGroup
objects. UseGroup
objects to form a group of child objects that can be treated as a single object.
Group
Object with Five Lines创建一个Group
objecthg
, and plot five lines. Set the'Parent'
property of the lines to behg
when you call theplot
function.
hg = hggroup; plot(randn(5),randn(5),'Parent',hg)
The following diagram shows the object hierarchy created by this example.