Graphics > Graphics Objects

21 functions in MATLAB › Graphics > Graphics Objects.

Graphics Object Identification

allchildReturns all children of graphics objects, including hidden ones.
ancestorFinds the closest enclosing object of a given type, such as the axes or figure of a line.
copyobjCopies graphics objects into a new parent.
deleteDeletes graphics objects, or files by name.
findallFinds graphics objects of all kinds, including hidden ones, by property values.
findfigsBrings figures that are off-screen back into view.
findobjFinds visible graphics objects by property values.
gcaReturns the handle of the current axes, creating one if needed.
gcbfReturns the figure that contains the object whose callback is running.
gcboReturns the object whose callback is currently executing.
gcfReturns the handle of the current figure, creating one if needed.
gcoReturns the graphics object that was last clicked.
gobjectsCreates an array of placeholder graphics objects for preallocation.
grootReturns the graphics root object, the top of the graphics hierarchy.
ishandleTests which elements of an array are valid graphics or UI handles.
ishghandleTests whether values are valid Handle Graphics object handles, optionally of a given type.

Specifying Target for Graphics Output

isholdTells whether the current axes keep existing plots when new ones are added.
newplotPrepares the figure and axes for a new plot, respecting hold and NextPlot settings.

Interactive Control and Callbacks

refreshRedraws the current figure.
shgShows the current figure, bringing it to the front.

Graphics Object Properties

resetRestores the properties of a graphics object to their defaults.