Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

hggroup

Create group object

Syntax

h = hggroup
h = hggroup(...,'PropertyName',propertyvalue,...)
h = hggroup(ax,...)

Properties

For a list of properties, see Group Properties.

Description

h = hggroup creates a group object as a child of the current axes and returns its handle, h.

h = hggroup(...,'PropertyName',propertyvalue,...) creates a group object with the property values specified in the argument list.

h = hggroup(ax,...) creates the group object in the axes specified by ax instead of in the current axes (gca). The option ax can precede any of the input argument combinations in the previous syntaxes.

A group object can be the parent of any axes, as well as other group objects. Use group objects to form a group of child objects that can be treated as a single object.

Examples

Plot random data and parented the lines to the group object.

hg = hggroup;
plot(randn(5),randn(5),'Parent',hg)

Instance Diagram for This Example

The following diagram shows the object hierarchy created by this example.

See Also

Introduced before R2006a

Was this topic helpful?