This is a static copy of a profile report

Home

scribe.legend.methods>localGetAxesTransform (9 calls, 0.022 sec)
Generated 05-Aug-2011 13:03:12 using cpu time.
subfunction in file /usr/local/MATLAB/R2011a/toolbox/matlab/scribe/@scribe/@legend/methods.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
scribe.legend.methods>lscansubfunction9
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
675
scale = get(hAx,'x_RenderScale...
90.022 s100.0%
680
transMat = xform * [diag(invSc...
90 s0%
678
invScale(~zeroInd) = 1./scale(...
90 s0%
677
invScale = zeros(size(scale));
90 s0%
676
zeroInd = scale == 0;
90 s0%
All other lines  0 s0%
Totals  0.022 s100% 
Children (called functions)
No children
Code Analyzer results
Line numberMessage
Coverage results
[ Show coverage for parent directory ]
Total lines in function16
Non-code lines (comments, blank lines)9
Code lines (lines that can run)7
Code lines that did run7
Code lines that did not run0
Coverage (did run/can run)100.00 %
Function listing
   time   calls  line
665 function transMat = localGetAxesTransform(hAx)
666 % Returns an invertible transformation matrix that represents the
667 % transformation of a point in the axes coordinate space to pixel-space.
668 % Based on HG's gs_data3matrix_to_pixel internal C-function. It should be
669 % noted that the Y-coordinate is flipped with respect to the Figure
670 % Window's returned "CurrentPoint" properties.
671
672 % Get needed transforms
9 673 xform = get(hAx,'x_RenderTransform');
9 674 offset = get(hAx,'x_RenderOffset');
0.02 9 675 scale = get(hAx,'x_RenderScale');
9 676 zeroInd = scale == 0;
9 677 invScale = zeros(size(scale));
9 678 invScale(~zeroInd) = 1./scale(~zeroInd);
679
9 680 transMat = xform * [diag(invScale) -offset;0 0 0 1];

Other subfunctions in this file are not included in this listing.