User`s guide

15 Examples of GUIs Created Programmatically
GUI with Axes, Menu, and Toolbar
In this section...
“About the Axes, Menu, and Toolbar Example” on page 15-4
“View and Run the AxesMenuToolbar Code” on page 15-6
“Generate the Graphing Commands and Data” on page 15-7
“Create the GUI and Its Components” on page 15-8
“Initialize the GUI” on page 15-13
“Define the Callbacks” on page 15-14
“Helper Function: Plot the Plot Types” on page 15-18
About the Axes, Menu, and Toolbar Example
This example creates a GUI that displays a user-selected plot in an axes. The
GUI contains the fo llowing components:
Axes
Pop-up menu with a list of five plots
Push button for updating the contents of the axes
Menu bar File menu with three items: Open, Print,andClose
Toolbar w ith tw o buttons that enable a user to open files and print the plot.
15-4