This is a static copy of a profile reportHome
legendcolorbarlayout>doLayoutCB (12 calls, 0.176 sec)
Generated 18-Mar-2011 23:32:02 using cpu time.
M-subfunction in file /Applications/MATLAB_R2010a.app/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 |
303 | doLayout(double(hax)); | 12 | 0.156 s | 88.2% |  |
277 | warnState(2) = warning('off','... | 12 | 0.010 s | 5.9% |  |
276 | warnState = warning('off','MAT... | 12 | 0.010 s | 5.9% |  |
307 | warning(warnState); | 12 | 0 s | 0% |  |
301 | end | 6 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0.176 s | 100% | |
Children (called functions)
M-Lint results
No M-Lint 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 | 16 |
Code lines that did not run | 5 |
Coverage (did run/can run) | 76.19 % |
Function listing
time calls line
270 function doLayoutCB(obj,evd,hax) %#ok
271 % Does the legend/colorbar layout to account for XLabel and YLabel
12 272 hObj = evd.AffectedObject;
273
274 % DIsable tex/latex warnings to prevent too much information being
275 % output to the command window
0.01 12 276 warnState = warning('off','MATLAB:tex');
0.01 12 277 warnState(2) = warning('off','MATLAB:gui:latexsup:BadTeXString');
278
279 % Short circuit if we are in the process of reclaiming space
12 280 if isappdata(double(hax),'LegendColorbarReclaimSpace')
281 warning(warnState);
282 return;
283 end
284
285 % Short circuit if the label has been thrown into "Manual" mode or the user
286 % has manually specified the label. The "CachedPosition" property is
287 % temporary and will go away in a future release as there will be a
288 % "PositionMode" property on the text object.
12 289 if ~isprop(hObj,'CachedPosition') || ...
290 ~isequal(get(hObj,'CachedPosition'),get(hObj,'Position'))
6 291 if isappdata(double(hObj),'LegendColorbarLayoutTextMode')
292 warning(warnState);
293 return;
6 294 else
6 295 setappdata(double(hObj),'LegendColorbarLayoutTextMode','manual');
6 296 end
6 297 else
6 298 if isappdata(double(hObj),'LegendColorbarLayoutTextMode')
6 299 rmappdata(double(hObj),'LegendColorbarLayoutTextMode');
6 300 end
6 301 end
302
0.16 12 303 doLayout(double(hax));
304
305 % Restore tex/latex warnings which were disabled at the beginning of this
306 % function
12 307 warning(warnState);
Other subfunctions in this file are not included in this listing.