This is a static copy of a profile reportHome
legendcolorbarlayout>doPixelBoundsCB (4 calls, 0.052 sec)
Generated 18-Mar-2011 23:32:54 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 |
355 | doLayout(get(obj,'Parent')); | 4 | 0.052 s | 100.0% |  |
356 | end | 4 | 0 s | 0% |  |
354 | setappdata(obj,'LegendColorbar... | 4 | 0 s | 0% |  |
353 | if isempty(oldpixbounds) || an... | 4 | 0 s | 0% |  |
352 | oldpixbounds = getappdata(obj,... | 4 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0.052 s | 100% | |
Children (called functions)
M-Lint results
No M-Lint messages.Coverage results
[ Show coverage for parent directory ]
Total lines in function | 9 |
Non-code lines (comments, blank lines) | 3 |
Code lines (lines that can run) | 6 |
Code lines that did run | 6 |
Code lines that did not run | 0 |
Coverage (did run/can run) | 100.00 % |
Function listing
time calls line
348 function doPixelBoundsCB(hSrc,eventdata) %#ok
4 349 obj = double(eventdata.affectedObject); % a text object
350 % only redo layout if pixel bounds changed by more than a pixel since
351 % axis bounds can bounce around by a pixel due to rounding
4 352 oldpixbounds = getappdata(obj,'LegendColorbarLayoutPixBounds');
4 353 if isempty(oldpixbounds) || any(abs(eventdata.newValue-oldpixbounds) > 1)
4 354 setappdata(obj,'LegendColorbarLayoutPixBounds',eventdata.newValue);
0.05 4 355 doLayout(get(obj,'Parent'));
4 356 end
Other subfunctions in this file are not included in this listing.