This is a static copy of a profile reportHome
legendcolorbarlayout>doPixelBoundsCB (28 calls, 0.109 sec)
Generated 05-Aug-2011 13:02:09 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)
Function Name | Function Type | Calls |
hardcopy | function | 28 |
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
362 | doLayout(get(obj,'Parent')); | 28 | 0.109 s | 100.0% |  |
363 | end | 28 | 0 s | 0% |  |
361 | setappdata(obj,'LegendColorbar... | 28 | 0 s | 0% |  |
360 | if isempty(oldpixbounds) || an... | 28 | 0 s | 0% |  |
359 | oldpixbounds = getappdata(obj,... | 28 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0.109 s | 100% | |
Children (called functions)
Code Analyzer results
No Code Analyzer 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
355 function doPixelBoundsCB(hSrc,eventdata) %#ok
28 356 obj = double(eventdata.affectedObject); % a text object
357 % only redo layout if pixel bounds changed by more than a pixel since
358 % axis bounds can bounce around by a pixel due to rounding
28 359 oldpixbounds = getappdata(obj,'LegendColorbarLayoutPixBounds');
28 360 if isempty(oldpixbounds) || any(abs(eventdata.newValue-oldpixbounds) > 1)
28 361 setappdata(obj,'LegendColorbarLayoutPixBounds',eventdata.newValue);
0.11 28 362 doLayout(get(obj,'Parent'));
28 363 end
Other subfunctions in this file are not included in this listing.