Graphics    

Specifying the Target for Graphics Output

By default, MATLAB functions that create graphics objects display them in the current figure and current axes (if an axes child). You can direct the output to another parent by explicitly specifying the Parent property with the creating function. For example,

where axes_handle is the handle of the target axes. The uicontrol and uimenu functions have a convenient syntax that enables you to specify the parent as the first argument,

or you can set the Parent property.


  Controlling Graphics Output Preparing Figures and Axes for Graphics