This is a static copy of a profile reportHome
legend>find_legend (2 calls, 0.000 sec)
Generated 18-Mar-2011 23:31:45 using cpu time.
M-subfunction in file /Applications/MATLAB_R2010a.app/toolbox/matlab/scribe/legend.m
Copy to new window for comparing multiple runs
Parents (calling functions)
Lines where the most time was spent
No measurable time spent in this functionLine Number | Code | Calls | Total Time | % Time | Time Plot |
415 | return; | 2 | 0 s | 0% |  |
414 | if ~isappdata(double(ha),'Lege... | 2 | 0 s | 0% |  |
411 | if isempty(ha) || ~ishandle(ha... | 2 | 0 s | 0% |  |
410 | leg = []; | 2 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0 s | 0% | |
Children (called functions)
No childrenM-Lint results
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 18 |
Non-code lines (comments, blank lines) | 6 |
Code lines (lines that can run) | 12 |
Code lines that did run | 4 |
Code lines that did not run | 8 |
Coverage (did run/can run) | 33.33 % |
Function listing
time calls line
405 function leg = find_legend(ha)
406
407 % Using the "LegendPeerHandle" appdata, we will find the legend peered to
408 % the current axes. This handle may be invalid due to copy/paste effects.
409 % In this case, the appdata will be reset.
2 410 leg = [];
2 411 if isempty(ha) || ~ishandle(ha)
412 return;
413 end
2 414 if ~isappdata(double(ha),'LegendPeerHandle')
2 415 return;
416 end
417 leg = getappdata(double(ha),'LegendPeerHandle');
418 if ~ishandle(leg) || ~isequal(get(leg,'Axes'),handle(ha))
419 % Reset the "LegendPeerHandle" appdata
420 rmappdata(double(ha),'LegendPeerHandle');
421 leg = [];
422 end
Other subfunctions in this file are not included in this listing.