Main Content

matlab.graphics.GraphicsPlaceholder Class

Namespace: matlab.graphics
Superclasses: matlab.graphics.Graphics

Default graphics object

Description

The matlab.graphics.GraphicsPlaceholder class defines the default graphics object. Instances of this class appear as:

  • Elements of pre-allocated arrays created with gobjects.

  • Unassigned array element placeholders

  • Graphics object properties that hold object handles, but are set to empty values

  • Empty values returned by functions that return object handles (for example, findobj).

Attributes

Sealedtrue
ConstructOnLoadtrue
HandleCompatibletrue

For information on class attributes, see Class Attributes.

Examples

collapse all

if isempty(get(groot,'CurrentFigure'))
   ... % There is no current figure
end