Create Figures for Programmatic UIs
Property Values Description
- none — do not display the
figure toolbar. - auto — display the figure
toolbar, but remove it if a user
interface control (uicontrol) is
added to the figure. - figure — display the figure
toolbar.
Units pixels, centimeters,
characters, inches,
normalized, points, Default is
pixels.
Units of measurement used to
interpret position vector
Visible on, off. Default is on. Determines whether a figure is
displayed on the screen.
For a complete list of properties and for more information about the properties listed in
the table, see Figure Properties.
The following statement names the figure My UI, positions the figure on the screen, and
makes the UI invisible so that the user cannot see the components as they are added or
initialized. All other properties assume their defaults.
f = figure('Visible','off','Name','My UI',...
'Position',[360,500,450,285]);
Related Examples
- “Lay Out a UI Programmatically”
- “Add Components to a Programmatic UI” on page 10- 9
- “Create Menus for Programmatic UIs” on page 10- 66
- “Create Toolbars for Programmatic UIs” on page 10- 79