This is a static copy of a profile reportHome
scribe.legend.init>PlotAxesChangedFontProperties (12 calls, 0.000 sec)
Generated 05-Aug-2011 13:02:23 using cpu time.
subfunction in file /usr/local/MATLAB/R2011a/toolbox/matlab/scribe/@scribe/@legend/init.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 |
394 | if ishandle(ax) && ish... | 12 | 0 s | 0% |  |
393 | ax = double(eventData.affected... | 12 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0 s | 0% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
opaque.double | function | 12 | 0 s | 0% |  |
Self time (built-ins, overhead, etc.) | | | 0 s | 0% |  |
Totals | | | 0 s | 0% | |
Code Analyzer results
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 30 |
Non-code lines (comments, blank lines) | 6 |
Code lines (lines that can run) | 24 |
Code lines that did run | 2 |
Code lines that did not run | 22 |
Coverage (did run/can run) | 8.33 % |
Function listing
time calls line
391 function PlotAxesChangedFontProperties(hProp,eventData,h) %#ok
392
12 393 ax = double(eventData.affectedObject);
12 394 if ishandle(ax) && ishandle(h)
395
396 % set font properties from axes without firing property listeners
397 proplis = get(h,'PropertyListeners');
398 oldstate = get(proplis,'enable');
399 set(proplis,'enable','off')
400 hax = h.Axes;
401 lis = get(hax,'ScribeLegendListeners');
402 if ~isempty(lis.fontname)
403 h.FontName = get(ax,'FontName');
404 end
405 if ~isempty(lis.fontangle)
406 h.FontAngle = get(ax,'FontAngle');
407 end
408 if ~isempty(lis.fontsize)
409 h.FontSize = get(ax,'FontSize');
410 end
411 if ~isempty(lis.fontweight)
412 h.FontWeight = get(ax,'FontWeight');
413 end
414 set(proplis,{'enable'},oldstate)
415
416 % make new items for legend
417 methods(h,'layout_legend_items','ignoreTokens');
418 legendcolorbarlayout(double(h.Axes),'objectChanged',h)
419 methods(h,'update_userdata');
420 end
Other subfunctions in this file are not included in this listing.