This is a static copy of a profile reportHome
newplot>ObserveFigureNextPlot (47 calls, 0.016 sec)
Generated 15-Mar-2007 12:01:48 using real time.
M-subfunction in file C:\Program Files\MATLAB71\toolbox\matlab\graphics\newplot.m
[Copy to new window for comparing multiple runs]
Parents (calling functions)
Function Name | Function Type | Calls |
newplot | M-function | 47 |
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
103 | if ~ishandle(fig) & isempt... | 47 | 0 s | 0% |  |
102 | end | 47 | 0 s | 0% |  |
100 | case 'add' | 47 | 0 s | 0% |  |
98 | case 'replacechildren' | 47 | 0 s | 0% |  |
96 | case 'replace' | 47 | 0 s | 0% |  |
Other lines & overhead | | | 0.016 s | 100.0% |  |
Totals | | | 0.016 s | 100% | |
Children (called functions)
No childrenM-Lint results
Line number | Message |
103 | Use && instead of & as the AND operator in (scalar) conditional statements. |
Coverage results
[ Show coverage for parent directory ]
Total lines in file | 26 |
Non-code lines (comments, blank lines) | 12 |
Code lines (lines that can run) | 14 |
Code lines that did run | 7 |
Code lines that did not run | 7 |
Coverage (did run/can run) | 50.00 % |
Function listing
time calls line
81 function fig = ObserveFigureNextPlot(fig, hsave)
82 %
83 % Helper fcn for preparing figure for nextplot, optionally
84 % preserving specific existing descendants.
85 % GUARANTEED to return a figure, even if some crazy combination
86 % of create / delete fcns deletes it.
87 %
47 88 switch get(fig,'nextplot')
47 89 case 'new'
90 % if someone calls plot(x,y,'parent',h) and h is an axes
91 % in a figure with NextPlot 'new', ignore the 'new' and
92 % treat it as 'add' - just add the axes to that figure.
93 if isempty(hsave)
94 fig = figure;
95 end
47 96 case 'replace'
97 clo(fig, 'reset', hsave);
47 98 case 'replacechildren'
99 clo(fig, hsave);
47 100 case 'add'
101 % nothing
47 102 end
47 103 if ~ishandle(fig) & isempty(hsave)
104 fig = figure;
105 end
106
Other subfunctions in this file are not included in this listing.