This is a static copy of a profile report

Home

newplot>ObserveAxesNextPlot (47 calls, 0.000 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
No measurable time spent in this function

Line NumberCodeCallsTotal Time% TimeTime Plot
131
if ~ishandle(ax) & isempty...
470 s0%
129
end
470 s0%
127
case 'add'
470 s0%
125
case 'replacechildren'
470 s0%
123
case 'replace'
470 s0%
Other lines & overhead  0 s0%
Totals  0.000 s0% 
Children (called functions)
No children
M-Lint results
Line numberMessage
131Use && instead of & as the AND operator in (scalar) conditional statements.
Coverage results
[ Show coverage for parent directory ]
Total lines in file31
Non-code lines (comments, blank lines)13
Code lines (lines that can run)18
Code lines that did run8
Code lines that did not run10
Coverage (did run/can run)44.44 %
Function listing
   time   calls  line
107 function ax = ObserveAxesNextPlot(ax, hsave)
108 %
109 % Helper fcn for preparing axes for nextplot, optionally
110 % preserving specific existing descendants
111 % GUARANTEED to return an axes in the same figure as the passed-in
112 % axes, even if that axes gets deleted by an overzealous create or
113 % delete fcn anywhere in the figure.
114 %
115
116 % for performance only call ancestor when needed
47 117 fig = get(ax,'Parent');
47 118 if ~strcmp(get(fig,'Type'),'figure')
119 fig = ancestor(fig,'figure');
120 end
121
47 122 switch get(ax,'nextplot')
47 123 case 'replace'
124 clo(ax, 'reset',hsave);
47 125 case 'replacechildren'
126 clo(ax, hsave);
47 127 case 'add'
128 % nothing
47 129 end
130
47 131 if ~ishandle(ax) & isempty(hsave)
132 if ~ishandle(fig)
133 ax = axes;
134 else
135 ax = axes('parent',fig);
136 end
137 end