This is a static copy of a profile report

Home

hold (279 calls, 0.516 sec)
Generated 15-Mar-2007 12:01:45 using real time.
M-function in file C:\Program Files\MATLAB71\toolbox\matlab\graphics\hold.m
[Copy to new window for comparing multiple runs]

Parents (calling functions)

Function NameFunction TypeCalls
see_mind_picM-function9
see_mind_domM-function16
legacyM-function6
see_mindM-function235
see_mind_germM-function13
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
35
ax = gca;
2790.250 s48.5%
32
[ax,args,nargs] = axescheck(va...
2790.063 s12.1%
60
set([fig ax],'NextPlot','add')...
2780.031 s6.1%
47
nextf = get(fig,'NextPlot');
2790.031 s6.1%
46
nexta = get(ax,'NextPlot');
2790.031 s6.1%
Other lines & overhead  0.109 s21.2%
Totals  0.516 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
gcaM-function2790.219 s42.4%
axescheckM-function2790.063 s12.1%
Self time (built-ins, overhead, etc.)  0.234 s45.5%
Totals  0.516 s100% 
M-Lint results
No M-Lint messages.
Coverage results
[ Show coverage for parent directory ]
Total lines in file70
Non-code lines (comments, blank lines)33
Code lines (lines that can run)37
Code lines that did run20
Code lines that did not run17
Coverage (did run/can run)54.05 %
Function listing
   time   calls  line
1 function hold(varargin)
2 %HOLD Hold current graph
3 % HOLD ON holds the current plot and all axis properties so that
4 % subsequent graphing commands add to the existing graph.
5 % HOLD OFF returns to the default mode whereby PLOT commands erase
6 % the previous plots and reset all axis properties before drawing
7 % new plots.
8 % HOLD, by itself, toggles the hold state.
9 % HOLD does not affect axis autoranging properties.
10 %
11 % HOLD ALL holds the plot and the current color and linestyle so
12 % that subsequent plotting commands will not reset the color and
13 % linestyle.
14 %
15 % HOLD(AX,...) applies the command to the Axes object AX.
16 %
17 % Algorithm note:
18 % HOLD ON sets the NextPlot property of the current figure and
19 % axes to "add".
20 % HOLD OFF sets the NextPlot property of the current axes to
21 % "replace".
22 %
23 % See also ISHOLD, NEWPLOT, FIGURE, AXES.
24
25 % Copyright 1984-2004 The MathWorks, Inc.
26 % $Revision: 5.9.4.6 $ $Date: 2005/06/21 19:32:20 $
27
28 % Parse possible Axes input
0.03 279 29 error(nargchk(0,2,nargin));
30
31 % look for leading axes (must not be a vector of handles)
0.06 279 32 [ax,args,nargs] = axescheck(varargin{:});
33
279 34 if isempty(ax)
0.25 279 35 ax = gca;
279 36 end
0.03 279 37 fig = get(ax,'Parent');
279 38 if ~strcmp(get(fig,'Type'),'figure')
39 fig = ancestor(fig,'figure');
40 end
41
279 42 if ~isempty(args)
0.02 279 43 opt_hold_state = args{1};
279 44 end
45
0.03 279 46 nexta = get(ax,'NextPlot');
0.03 279 47 nextf = get(fig,'NextPlot');
279 48 hold_state = strcmp(nexta,'add') && strcmp(nextf,'add');
279 49 if(nargs == 0)
50 if(hold_state)
51 set(ax,'NextPlot','replace');
52 disp('Current plot released');
53 else
54 set(fig,'NextPlot','add');
55 set(ax,'NextPlot', 'add');
56 disp('Current plot held');
57 end
58 setappdata(ax,'PlotHoldStyle',false);
279 59 elseif(strcmp(opt_hold_state, 'on'))
0.03 278 60 set([fig ax],'NextPlot','add');
278 61 setappdata(ax,'PlotHoldStyle',false);
1 62 elseif(strcmp(opt_hold_state, 'off'))
1 63 set(ax,'NextPlot', 'replace');
1 64 setappdata(ax,'PlotHoldStyle',false);
65 elseif(strcmp(opt_hold_state, 'all'))
66 set([fig ax],'NextPlot','add');
67 setappdata(ax,'PlotHoldStyle',true);
68 else
69 error('Unknown command option.');
70 end