User`s guide

Add Components to a Programmatic GUI
The s oftware automatically adds the tick marks. Most functions that draw
in the axes u pdate the tick marks appropriately.
Prevent Customized Axes Properties from Being Reset. Data graphing
functions, such as
plot, im age, scatter, and m any others by default reset
axes properties before they draw into an axes. This can be a problem in a
GUI where you might need to maintain consistency of axes limits, ticks, axis
colors, and font characteristics from one plot to another.
The default value of the
NextPlot axes property, 'replac e' causes this
behavior, and can further interfere with a GUI that generates plots by
removing all callbacks from the axes whenever a graph is plotted or replotted.
ForaGUI,theappropriatevalueisoften
'replacechildren'. Consequently,
in callbacks that generate graphics, you m ight need to include code such as
set(ah,'NextPlot','replacechildren')
prior to changing the contents of an axes by drawing a graph; this will plot
the graph without reseting existing property values of an axes that the GUI
might require, such as its colors, fonts, context menu or
ButtonDownFcn.For
an example in which
NextPlot is set this way, see “Extend the tablestat
GUI” on page 10-52.
Add ActiveX Controls
ActiveX components enable you to display A ctiveX controls in your G UI. They
are available only on the M icrosoft Windows platform.
An ActiveX control can be th e chi ld only o f a figure ; i.e., of the G UI itself. It
cannot be the child of a panel or button group.
See “Creating an ActiveX Control” about adding an ActiveX control to a figure.
See “Creating CO M Objects” for general information about ActiveX controls.
11-41