This is a static copy of a profile reportHome
genfig>plotflag (80 calls, 1.661 sec)
Generated 05-Aug-2011 13:03:28 using cpu time.
subfunction in file /home/LeechJ/cbass_analysis/reduc/plotting/genfig.m
Copy to new window for comparing multiple runs
Parents (calling functions)
Function Name | Function Type | Calls |
genfig | function | 80 |
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
188 | h=plot(x{1,pageNum},x{2,pageNu... | 80 | 0.809 s | 48.7% |  |
192 | plotdescription(txt,plotNum,pa... | 80 | 0.306 s | 18.4% |  |
214 | h=plot(x{1,pageNum}(f),x{2,pag... | 74 | 0.120 s | 7.2% |  |
189 | manaxis(ax,x{2,pageNum}(:,plot... | 80 | 0.098 s | 5.9% |  |
203 | f = find(allflags{2,pageNum}(:... | 80 | 0.087 s | 5.3% |  |
All other lines | | | 0.240 s | 14.5% |  |
Totals | | | 1.661 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
genfig>plotdescription | subfunction | 80 | 0.306 s | 18.4% |  |
newplot | function | 204 | 0.251 s | 15.1% |  |
hold | function | 162 | 0.077 s | 4.6% |  |
lineseries | function | 204 | 0.055 s | 3.3% |  |
genfig>manaxis | subfunction | 160 | 0.011 s | 0.7% |  |
Self time (built-ins, overhead, etc.) | | | 0.962 s | 57.9% |  |
Totals | | | 1.661 s | 100% | |
Code Analyzer results
Line number | Message |
173 | Input argument 'multLinesPerPlot' might be unused. If this is OK, consider replacing it by ~. |
199 | The value assigned to variable 'numpts' might be unused. |
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 48 |
Non-code lines (comments, blank lines) | 19 |
Code lines (lines that can run) | 29 |
Code lines that did run | 27 |
Code lines that did not run | 2 |
Coverage (did run/can run) | 93.10 % |
Function listing
time calls line
173 function h=plotflag(x,allflags,ax,pageNum,plotNum,txt,num,matrix,swap, multLinesPerPlot)
174
175 % if x has a fourth dimension, plot that first
80 176 if(size(x,1)==4)
2 177 if(size(x{1,pageNum},1) == size(x{4,pageNum},1))
178 plot(x{1,pageNum},x{4,pageNum}(:,plotNum),'c.','MarkerSize',10);
179 hold on;
2 180 else
0.01 2 181 plot(x{3,pageNum},x{4,pageNum}(:,plotNum),'c.','MarkerSize',10);
2 182 hold on;
2 183 end
2 184 end
185
186
187 % plot data
0.81 80 188 h=plot(x{1,pageNum},x{2,pageNum}(:,plotNum),'b.','MarkerSize',10);
0.10 80 189 manaxis(ax,x{2,pageNum}(:,plotNum))
0.04 80 190 hold on;
191
0.31 80 192 plotdescription(txt,plotNum,pageNum,num,matrix,swap);
193
194
195 % check for manual axis settings
0.07 80 196 manaxis(ax,x{2,pageNum}(:,plotNum));
197
198 % plot order is IMPORTANT!
80 199 numpts = size(x{1,pageNum},1);
200
201 % plot old flags
80 202 if (~isempty(allflags{2,pageNum}))
0.09 80 203 f = find(allflags{2,pageNum}(:,plotNum));
80 204 if (~isempty(f))
0.07 48 205 h=plot(x{1,pageNum}(f),x{2,pageNum}(f,plotNum),'g.','MarkerSize',10);
48 206 end
80 207 end
208
209 % plot new
80 210 if (~isempty(allflags{1,pageNum}))
211 % always plotting fast sampled data.
0.01 80 212 f = find(allflags{1,pageNum}(:,plotNum));
80 213 if (~isempty(f))
0.12 74 214 h=plot(x{1,pageNum}(f),x{2,pageNum}(f,plotNum),'r.','MarkerSize',10);
74 215 end
80 216 end
217
0.04 80 218 hold off
219
80 220 return;
Other subfunctions in this file are not included in this listing.