This is a static copy of a profile report

Home

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)

Function NameFunction TypeCalls
graphics/private/clofunction12
Lines where the most time was spent
No measurable time spent in this function

Line NumberCodeCallsTotal Time% TimeTime Plot
394
if ishandle(ax) && ish...
120 s0%
393
ax = double(eventData.affected...
120 s0%
All other lines  0 s0%
Totals  0 s0% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
opaque.doublefunction120 s0%
Self time (built-ins, overhead, etc.)  0 s0%
Totals  0 s0% 
Code Analyzer results
Line numberMessage
Coverage results
[ Show coverage for parent directory ]
Total lines in function30
Non-code lines (comments, blank lines)6
Code lines (lines that can run)24
Code lines that did run2
Code lines that did not run22
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.