This is a static copy of a profile reportHome
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)
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
675 | scale = get(hAx,'x_RenderScale... | 9 | 0.022 s | 100.0% |  |
680 | transMat = xform * [diag(invSc... | 9 | 0 s | 0% |  |
678 | invScale(~zeroInd) = 1./scale(... | 9 | 0 s | 0% |  |
677 | invScale = zeros(size(scale)); | 9 | 0 s | 0% |  |
676 | zeroInd = scale == 0; | 9 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0.022 s | 100% | |
Children (called functions)
No childrenCode Analyzer results
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 16 |
Non-code lines (comments, blank lines) | 9 |
Code lines (lines that can run) | 7 |
Code lines that did run | 7 |
Code lines that did not run | 0 |
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.