MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Specifikace Strana 145

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 216
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 144
Programming Callbacks for GUI Components
4-25
hidden from plotting commands issued by your GUI. To issue plotting
commands from your GUI,
• Create a figure and axes.
• Save the handle of the figure in the
handles structure.
• Create an axes, save its handle, and set its
Parent property to the figure
handle.
• Create the plot, save the handles, and set their Parent properties to the
handle of the axes.
The following code illustrates these steps:
fHandle =
figure('HandleVisibility','off','IntegerHandle','off',...
'Visible','off');
aHandle = axes('Parent',fHandle);
pHandles = plot(PlotData,'Parent',aHandle);
set(fHandle,'Visible','on')
Note that not all plotting commands accept property name/property value
specifications as arguments. Consult the reference page for the specific
command to see what arguments you can specify.
Zobrazit stránku 144
1 2 ... 140 141 142 143 144 145 146 147 148 149 150 ... 215 216

Komentáře k této Příručce

Žádné komentáře