User`s guide
Add Code for Components in C allbacks
Axes
Axes components enable your GUI to display graphics, such as graphs and
images. This topic briefly tells you how to plot to axes components in your
GUI.
• “Plotting to an Axes” on p age 8-45
• “Creating Subplots” on page 8-47
Plotting to a n Axes
In most cases, you create a plot in an axes from a callback that belongs to
some other compo ne nt in the GUI. For example, pressing a button might
trigger the plotting of a graph to an axes. In this case, the button’s
Callback
callback contains the code that generates the plot.
The following example contains two axes and two buttons. Clicking one
button generates a plot in one axes and clicking the other button generates a
plot in the other axes. The following figure shows these components as they
might appear in the Layout Editor.
8-45