This is a static copy of a profile reportHome
getprinttemplate (80 calls, 0.011 sec)
Generated 05-Aug-2011 13:03:34 using cpu time.
function in file /usr/local/MATLAB/R2011a/toolbox/matlab/graphics/getprinttemplate.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 |
7 | pt = get(h, 'PrintTemplate'); | 80 | 0.011 s | 100.0% |  |
8 | if ~isempty(pt) | 80 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0.011 s | 100% | |
Children (called functions)
No childrenCode Analyzer results
No Code Analyzer messages.Coverage results
[ Show coverage for parent directory ]
Total lines in function | 32 |
Non-code lines (comments, blank lines) | 10 |
Code lines (lines that can run) | 22 |
Code lines that did run | 2 |
Code lines that did not run | 20 |
Coverage (did run/can run) | 9.09 % |
Function listing
time calls line
1 function pt = getprinttemplate( h )
2 %GETPRINTTEMPLATE Get a figure's PrintTemplate
3
4 % Copyright 1984-2008 The MathWorks, Inc.
5 % $Revision: 1.3.4.6 $ $Date: 2008/12/15 08:52:47 $
6
0.01 80 7 pt = get(h, 'PrintTemplate');
80 8 if ~isempty(pt)
9 if isfield(pt,'VersionNumber')
10 ver = pt.VersionNumber;
11 else
12 ver = nan;
13 end
14 if isnan(ver)
15 ptnew = printtemplate;
16 ptnew.Name = pt.Name;
17 ptnew.FrameName = pt.FrameName;
18 if pt.DriverColor
19 ptnew.DriverColor = 1;
20 else
21 ptnew.DriverColor = 0;
22 end
23 ptnew.AxesFreezeTicks = pt.AxesFreezeTicks;
24 ptnew.AxesFreezeLimits = pt.AxesFreezeLimits;
25 pt = ptnew;
26 end
27 % Append the figure paper properties and header info without changing
28 % the VersionNumber since ptpreparehg and ptrestorehg perform a check
29 % that the VersionNumber is 2 (or more) for the new page layout
30 % PrintTemplate.
31 pt = appendPropsFromFigToPrintTemplate(pt,h);
32 end
Other subfunctions in this file are not included in this listing.