MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Uživatelský manuál Strana 288

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 500
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 287
9 Examples of GUIDE UIs
9-42
Caching the list of rows in the selection is necessary because changing plot types can
force selection data to be replotted. As the plot_type_Callback has no access to the
data table's event data, it requires a copy of the most recent selection.
Update the Statistics Table and the Graphs
The code must update the Data Statistics table and the graphs above it when:
• The UI is initialized, in its tablestat_OpeningFcn.
• You select cells in the data table, in its data_table_CellSelectionCallback.
• You select a different plot type, in the plot_type_Callback.
In each case, the refreshDisplays function is called to handle the updates. It in turn
calls two other custom functions:
• setStats — Computes summary statistics for the selection and returns them.
• plotPeriod — Plots the type of graph currently requested in the appropriate axes.
The refreshDisplays function identifies the current plot type and specifies the axes
to plot graphs into. After calling plotPeriod and setStats, it updates the Data
Statistics table with the recomputed statistics. Here is the code for refreshDisplays:
function refreshDisplays(table, handles, item)
if isequal(item,1)
ax = handles.axes1;
elseif isequal(item,2)
ax = handles.axes2;
end
peak = plotPeriod(ax, table,...
get(handles.plot_type,'Value'));
stats = get(handles.data_stats, 'Data');
stats = setStats(table, stats, item, peak);
set(handles.data_stats, 'Data', stats);
set(ax,'FontSize',7.0);
If you are reading this document in the MATLAB Help Browser, click the names of
the functions underlined above to see their complete code (including comments) in the
MATLAB Editor.
Display Graphs in New Figure Windows
The tablestat UI contains code to display either of its graphs in a larger size in a
new figure window when you right-click either axes and selects the pop-up menu item,
Zobrazit stránku 287
1 2 ... 283 284 285 286 287 288 289 290 291 292 293 ... 499 500

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

Žádné komentáře

Xerox DocuColor 250 manuals

Owner’s manuals and user’s guides for Printers Xerox DocuColor 250.
We providing 1 pdf manuals Xerox DocuColor 250 for download free by document types: User Manual






More products and manuals for Printers Xerox

Models Document Type
DocuColor 2060 NPS User Manual   Xerox DocuColor 2060 NPS User Manual, 38 pages
701P35371 User Manual   Xerox 701P35371 User Manual, 86 pages
DocuColor 5000AP User Manual   Xerox DocuColor 5000AP User Manual, 20 pages
CopyCentre/WorkCentre 118 MO3101Y6-1 User Manual   Xerox CopyCentre/WorkCentre 118 MO3101Y6-1 User Manual, 4 pages
DCC360 User Manual   Xerox DCC360 User Manual, 7 pages
3535 User Manual   Xerox 3535 User Manual, 268 pages
Phaser laser printer 4500 User Manual   Xerox Phaser laser printer 4500 User Manual, 10 pages
96/4635/180 IPS User Manual   Xerox 96/4635/180 IPS User Manual, 51 pages
3100MFP User Manual   Xerox 3100MFP User Manual, 12 pages
6360 User Manual   Xerox 6360 User Manual, 4 pages
SquareFold 610P729932 User Manual   Xerox SquareFold 610P729932 User Manual, 2 pages
Phaser 6180 User Manual   Xerox Phaser 6180 User Manual, 4 pages
DC98CC09 User Manual   Xerox DC98CC09 User Manual, 4 pages
XT3008EN0-2 User Manual   Xerox XT3008EN0-2 User Manual, 30 pages
2000 User Manual   Xerox 2000 User Manual, 2 pages
WorkCentre XD130DF User Manual   Xerox WorkCentre XD130DF User Manual, 1 pages
F12 User Manual   Xerox F12 User Manual, 4 pages
785 User Manual   Xerox 785 User Manual, 368 pages
DC220 User Manual   Xerox DC220 User Manual, 2 pages
8142 User Manual   Xerox 8142 User Manual, 1 pages