This is a static copy of a profile reportHome
legendcolorbarlayout>doLayoutCB (364 calls, 0.710 sec)
Generated 05-Aug-2011 13:02:05 using cpu time.
subfunction in file /usr/local/MATLAB/R2011a/toolbox/matlab/scribe/legendcolorbarlayout.m
Copy to new window for comparing multiple runs
Parents (calling functions)
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
310 | doLayout(double(hax)); | 82 | 0.503 s | 70.8% |  |
296 | if ~isprop(hObj,'CachedPositio... | 364 | 0.098 s | 13.8% |  |
298 | if isappdata(double(hObj),'Leg... | 339 | 0.044 s | 6.2% |  |
287 | if isappdata(double(hax),'Lege... | 364 | 0.022 s | 3.1% |  |
283 | warnState = warning('off','MAT... | 364 | 0.022 s | 3.1% |  |
All other lines | | | 0.022 s | 3.1% |  |
Totals | | | 0.710 s | 100% | |
Children (called functions)
Code Analyzer results
No Code Analyzer messages.Coverage results
[ Show coverage for parent directory ]
Total lines in function | 38 |
Non-code lines (comments, blank lines) | 17 |
Code lines (lines that can run) | 21 |
Code lines that did run | 18 |
Code lines that did not run | 3 |
Coverage (did run/can run) | 85.71 % |
Function listing
time calls line
277 function doLayoutCB(obj,evd,hax) %#ok
278 % Does the legend/colorbar layout to account for XLabel and YLabel
364 279 hObj = evd.AffectedObject;
280
281 % DIsable tex/latex warnings to prevent too much information being
282 % output to the command window
0.02 364 283 warnState = warning('off','MATLAB:tex');
0.01 364 284 warnState(2) = warning('off','MATLAB:gui:latexsup:BadTeXString');
285
286 % Short circuit if we are in the process of reclaiming space
0.02 364 287 if isappdata(double(hax),'LegendColorbarReclaimSpace')
288 warning(warnState);
289 return;
290 end
291
292 % Short circuit if the label has been thrown into "Manual" mode or the user
293 % has manually specified the label. The "CachedPosition" property is
294 % temporary and will go away in a future release as there will be a
295 % "PositionMode" property on the text object.
0.10 364 296 if ~isprop(hObj,'CachedPosition') || ...
297 ~isequal(get(hObj,'CachedPosition'),get(hObj,'Position'))
0.04 339 298 if isappdata(double(hObj),'LegendColorbarLayoutTextMode')
282 299 warning(warnState);
282 300 return;
57 301 else
0.01 57 302 setappdata(double(hObj),'LegendColorbarLayoutTextMode','manual');
57 303 end
25 304 else
25 305 if isappdata(double(hObj),'LegendColorbarLayoutTextMode')
15 306 rmappdata(double(hObj),'LegendColorbarLayoutTextMode');
15 307 end
25 308 end
309
0.50 82 310 doLayout(double(hax));
311
312 % Restore tex/latex warnings which were disabled at the beginning of this
313 % function
82 314 warning(warnState);
Other subfunctions in this file are not included in this listing.