isgraphics

Check for graphics object.

Syntax

  • tf = isgraphics(GO)

  • tf = isgraphics(GO, type)

Input argument

  • GO - variable or graphics object.

  • type - a character vector or scalar string: 'axes', 'line', 'image', 'root', 'text', 'figure'.

Output argument

  • tf - a scalar logical.

Description

isgraphics checks is variable is an graphics object.

Example

f = figure()
tf = isgraphics(f)
tf = isgraphics(f, 'figure')
tf = isgraphics(f, 'text')
f = 3
tf = isgraphics(f)

See also

isprop.

History

Author

Allan CORNET

Last updated