This is a static copy of a profile reportHome
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 Name | Function Type | Calls |
newplot | M-function | 47 |
Lines where the most time was spent
No measurable time spent in this functionLine Number | Code | Calls | Total Time | % Time | Time Plot |
131 | if ~ishandle(ax) & isempty... | 47 | 0 s | 0% |  |
129 | end | 47 | 0 s | 0% |  |
127 | case 'add' | 47 | 0 s | 0% |  |
125 | case 'replacechildren' | 47 | 0 s | 0% |  |
123 | case 'replace' | 47 | 0 s | 0% |  |
Other lines & overhead | | | 0 s | 0% |  |
Totals | | | 0.000 s | 0% | |
Children (called functions)
No childrenM-Lint results
Line number | Message |
131 | Use && instead of & as the AND operator in (scalar) conditional statements. |
Coverage results
[ Show coverage for parent directory ]
Total lines in file | 31 |
Non-code lines (comments, blank lines) | 13 |
Code lines (lines that can run) | 18 |
Code lines that did run | 8 |
Code lines that did not run | 10 |
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