printing/private/ptrestorehg (Calls: 10, Time: 0.003 s)
Generated 16-Jul-2020 17:09:31 using performance time.
function in file /Applications/MATLAB_R2020a.app/toolbox/matlab/graphics/printing/private/ptrestorehg.m
Copy to new window for comparing multiple runs
Function Name | Function Type | Calls |
printing/private/printjobContentChanges | function | 10 |
Line Number | Code | Calls | Total Time | % Time | Time Plot |
37 | restoreExport(hg1data.oldTickL... | 10 | 0.002 s | 65.7% | |
36 | if isfield(hg1data, 'oldTickLi... | 10 | 0.000 s | 7.1% | |
14 | if pt.VersionNumber > 1 | 10 | 0.000 s | 5.8% | |
9 | if pt.DebugMode | 10 | 0.000 s | 5.1% | |
34 | hg1data = pt.v1hgdata; | 10 | 0.000 s | 3.6% | |
All other lines | 0.000 s | 12.8% | |||
Totals | 0.003 s | 100% |
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
printing/private/restoreExport | function | 10 | 0.001 s | 49.7% | |
Self time (built-ins, overhead, etc.) | 0.002 s | 50.3% | |||
Totals | 0.003 s | 100% |
Total lines in function | 40 |
Non-code lines (comments, blank lines) | 19 |
Code lines (lines that can run) | 21 |
Code lines that did run | 9 |
Code lines that did not run | 12 |
Coverage (did run/can run) | 42.86 % |
time | Calls | line | |
---|---|---|---|
1 | function ptrestorehg( pt, h ) | ||
2 | %FORMAT Method that restores a Figure after formatting it for output. | ||
3 | % Input of PrintTemplate object and a Figure to modify. | ||
4 | % Figure has numerous properties restore to previous values modified | ||
5 | % to account for template settings. | ||
6 | |||
7 | % Copyright 1984-2017 The MathWorks, Inc. | ||
8 | |||
< 0.001 | 10 | 9 | if pt.DebugMode |
10 | fprintf(getString(message('MATLAB:uistring:ptrestorehg:RestoringFigure', num2str(double(h))))); | ||
11 | disp(pt); | ||
< 0.001 | 10 | 12 | end |
13 | |||
< 0.001 | 10 | 14 | if pt.VersionNumber > 1 |
15 | hgdata = pt.v2hgdata; | ||
16 | |||
17 | % Restore to all original values | ||
18 | if isfield(hgdata, 'old') && ~isempty(hgdata.old) | ||
19 | restoreExport(hgdata.old); | ||
20 | end | ||
21 | |||
22 | % Restore bkColor | ||
23 | if isfield(hgdata, 'bkcolor') | ||
24 | set(h, 'Color', hgdata.bkcolor); | ||
25 | end | ||
26 | |||
27 | % Restore bkcolormode | ||
28 | if isfield(hgdata, 'bkcolormode') | ||
29 | set(h, 'ColorMode', hgdata.bkcolormode); | ||
30 | end | ||
< 0.001 | 10 | 31 | end |
32 | |||
33 | % Restore Axes/Ruler Tick/Limit values | ||
< 0.001 | 10 | 34 | hg1data = pt.v1hgdata; |
35 | |||
< 0.001 | 10 | 36 | if isfield(hg1data, 'oldTickLimit') |
0.002 | 10 | 37 | restoreExport(hg1data.oldTickLimit); |
< 0.001 | 10 | 38 | end |
39 | |||
< 0.001 | 10 | 40 | end |
Other subfunctions in this file are not included in this listing.