This is a static copy of a profile report

Home

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 NameFunction TypeCalls
newplotM-function47
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
103
if ~ishandle(fig) & isempt...
470 s0%
102
end
470 s0%
100
case 'add'
470 s0%
98
case 'replacechildren'
470 s0%
96
case 'replace'
470 s0%
Other lines & overhead  0.016 s100.0%
Totals  0.016 s100% 
Children (called functions)
No children
M-Lint results
Line numberMessage
103Use && instead of & as the AND operator in (scalar) conditional statements.
Coverage results
[ Show coverage for parent directory ]
Total lines in file26
Non-code lines (comments, blank lines)12
Code lines (lines that can run)14
Code lines that did run7
Code lines that did not run7
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.