This is a static copy of a profile reportHome
imuitools\private\isSingleImageDefaultPos (1 call, 0.000 sec)
Generated 15-Mar-2007 12:02:03 using real time.
M-function in file C:\Program Files\MATLAB71\toolbox\images\imuitools\private\isSingleImageDefaultPos.m
[Copy to new window for comparing multiple runs]
Parents (calling functions)
Function Name | Function Type | Calls |
imshow | M-function | 1 |
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
19 | axes_has_company = (length(kid... | 1 | 0.000 s | 49.8% |  |
30 | is_single = true; | 1 | 0.000 s | 39.2% |  |
29 | if axes_in_default_pos | 1 | 0.000 s | 11.0% |  |
35 | end | 1 | 0 s | 0% |  |
34 | end | 1 | 0 s | 0% |  |
Other lines & overhead | | | 0 s | 0% |  |
Totals | | | 0.000 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
allchild | M-function | 1 | 0 s | 0% |  |
ancestor | M-function | 1 | 0 s | 0% |  |
Self time (built-ins, overhead, etc.) | | | 0 s | 0% |  |
Totals | | | 0.000 s | 100% | |
M-Lint results
No M-Lint messages.Coverage results
[ Show coverage for parent directory ]
Total lines in file | 35 |
Non-code lines (comments, blank lines) | 15 |
Code lines (lines that can run) | 20 |
Code lines that did run | 15 |
Code lines that did not run | 5 |
Coverage (did run/can run) | 75.00 % |
Function listing
time calls line
1 function is_single = isSingleImageDefaultPos(fig_handle, ax_handle)
2 %isSingleImageDefaultPos
3 % IS_SINGLE = isSingleImageDefaultPos(FIG,AX) returns true when it the
4 % axes AX is alone in the figure FIG and AX is in its default
5 % position. This heuristic means it is safe to resize the figure to
6 % accommodate user requests on the initial magnification.
7
8 % Copyright 1993-2003 The MathWorks, Inc.
9 % $Revision: 1.1.8.1 $ $Date: 2004/08/10 01:50:28 $
10
1 11 more_than_one_image = (length(findobj(ax_handle, 'Type', 'image')) > 1);
1 12 if more_than_one_image
13 is_single = false;
14
1 15 else
1 16 fig_kids = allchild(fig_handle);
1 17 kids = [findobj(fig_kids, 'Type', 'axes') ;
18 findobj(fig_kids, 'Type', 'uicontrol', 'Visible', 'on')];
< 0.01 1 19 axes_has_company = (length(kids) > 1);
20
1 21 if axes_has_company
22 is_single = false;
1 23 else
1 24 active_property = get(ax_handle,'ActivePositionProperty');
1 25 fig = ancestor(ax_handle,'Figure');
1 26 axes_in_default_pos = (isequal(get(ax_handle, active_property), ...
27 get(fig, ...
28 ['DefaultAxes' active_property])));
< 0.01 1 29 if axes_in_default_pos
< 0.01 1 30 is_single = true;
31 else
32 is_single = false;
33 end
1 34 end
1 35 end