This is a static copy of a profile reportHome
lineseries (678 calls, 0.142 sec)
Generated 05-Aug-2011 13:03:07 using cpu time.
function in file /usr/local/MATLAB/R2011a/toolbox/matlab/graph2d/lineseries.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 |
24 | plotmgr = graph2dhelper('getpl... | 677 | 0.066 s | 46.2% |  |
23 | objs = handle(varargin{2}); | 677 | 0.033 s | 23.1% |  |
19 | lineseriesmex; | 678 | 0.022 s | 15.4% |  |
30 | end | 677 | 0.011 s | 7.7% |  |
25 | if ~isempty(plotmgr) &&... | 677 | 0.011 s | 7.7% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0.142 s | 100% | |
Children (called functions)
Code Analyzer results
No Code Analyzer messages.Coverage results
[ Show coverage for parent directory ]
Total lines in function | 33 |
Non-code lines (comments, blank lines) | 19 |
Code lines (lines that can run) | 14 |
Code lines that did run | 7 |
Code lines that did not run | 7 |
Coverage (did run/can run) | 50.00 % |
Function listing
time calls line
1 function h = lineseries(varargin)
2 %LINESERIES Line plot helper function
3 % This function is an internal helper function for line plots.
4
5 % H = LINESERIES(PARAM1, VALUE1, PARAM2, VALUE2, ...) constructs
6 % a lineseries object, applies the specified parameter-value pairs
7 % and return the result in H.
8 %
9 % LINESERIES('init') will only register the lineseries class and
10 % won't return a lineseries object.
11 %
12 % LINESERIES('event',H) sends a PlotFunctionDone event for objects
13 % H and returns.
14 %
15 % See also: PLOT
16
17 % Copyright 1984-2010 The MathWorks, Inc.
18
0.02 678 19 lineseriesmex;
678 20 if (nargin > 0) && ischar(varargin{1}) % any string as first arg is special
678 21 if strcmp(varargin{1},'event')
22 % adapted code from specgraph/private/plotdoneevent.m
0.03 677 23 objs = handle(varargin{2});
0.07 677 24 plotmgr = graph2dhelper('getplotmanager','-peek');
0.01 677 25 if ~isempty(plotmgr) && ishandle(plotmgr)
26 evdata = graphics.plotevent(plotmgr,'PlotFunctionDone');
27 set(evdata,'ObjectsCreated',objs,'Figure',ancestor(objs(1),'figure'));
28 send(plotmgr,'PlotFunctionDone',evdata);
29 end
0.01 677 30 end
31 else
32 h = double(graph2d.lineseries(varargin{:}));
33 end