This is a static copy of a profile reportHome
graphics/private/positions (40 calls, 0.066 sec)
Generated 05-Aug-2011 13:03:35 using cpu time.
function in file /usr/local/MATLAB/R2011a/toolbox/matlab/graphics/private/positions.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 |
17 | if strcmp( 'portrait', getget(... | 40 | 0.022 s | 33.3% |  |
13 | unionPaperPos = LocalUnion( ha... | 40 | 0.022 s | 33.3% |  |
11 | setset(handles, 'paperunits','... | 40 | 0.011 s | 16.7% |  |
10 | savedUnits = getget(handles, '... | 40 | 0.011 s | 16.7% |  |
19 | pj.GhostTranslation = unionPap... | 40 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0.066 s | 100% | |
Children (called functions)
Code Analyzer results
No Code Analyzer messages.Coverage results
[ Show coverage for parent directory ]
Total lines in function | 26 |
Non-code lines (comments, blank lines) | 11 |
Code lines (lines that can run) | 15 |
Code lines that did run | 8 |
Code lines that did not run | 7 |
Coverage (did run/can run) | 53.33 % |
Function listing
time calls line
1 function pj = positions( pj, handles )
2 %POSITIONS Determine the union of the PaperPositions of all objects passed in.
3 % Sets GhostExtent and GhostTranslation fields of PrintJob object.
4
5 % Copyright 1984-2002 The MathWorks, Inc.
6 % $Revision: 1.4 $ $Date: 2002/04/10 17:09:49 $
7
8 %Assuming all have same paper orientation and type
9 %Make sure they all use Points.
0.01 40 10 savedUnits = getget(handles, 'paperunits');
0.01 40 11 setset(handles, 'paperunits','points')
12
0.02 40 13 unionPaperPos = LocalUnion( handles );
40 14 pSize = getget(handles(1),'papersize');
40 15 setset(handles, 'paperunits', savedUnits );
16
0.02 40 17 if strcmp( 'portrait', getget(handles(1),'paperorientation') )
40 18 pj.GhostExtent = unionPaperPos([3 4]);
40 19 pj.GhostTranslation = unionPaperPos([1 2]);
20 elseif strcmp( 'rotated', getget(handles(1),'paperorientation') )
21 pj.GhostExtent = unionPaperPos([4 3]);
22 pj.GhostTranslation = [ (unionPaperPos(1)-(pSize(1)-unionPaperPos(3))) unionPaperPos(2) ];
23 else
24 pj.GhostExtent = unionPaperPos([4 3]);
25 pj.GhostTranslation = [ unionPaperPos(1) (unionPaperPos(2) - (pSize(2)-unionPaperPos(4))) ];
26 end
Other subfunctions in this file are not included in this listing.