Specifications
2 MATLAB GUIs
2-12
Command-Line Accessibility
When MATLAB creates a graph, the figure and axes are included in the list of
children of their respective parents and their handles are available through
commands such as
findobj, set, and get. If you issue another plotting
command, the output is directed to the current figure and axes.
GUIs are also created in figure windows. Generally, you do not want GUI
figures to be available as targets for graphics output, since issuing a plotting
command could direct the output to the GUI figure, resulting in the graph
appearing in the middle of the GUI.
In contrast, if you create a GUI that contains an axes and you want commands
entered in the command window to display in this axes, you should enable
command-line access.
Access Options
The GUIDE Application Options dialog provides three options to control user
access:
•
Callback – the figure and axes are visible only from within callbacks
(default).
•
Off – prevent command-line access to the GUI figure.
•
On – enable command-line access to the GUI figure.
•
User-specified – the GUI uses the values you set for the figure
HandleVisibility and IntegerHandle properties.
Figure Properties That Control Access
There are two figure properties that control command-line accessibility of the
figure:
•
HandleVisibility – determines whether the figure’s handle is visible to
commands that attempt to access the current figure.
•
IntegerHandle – determines if a figure’s handle is an integer or a floating
point value.