This is a static copy of a profile report

Home

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 NameFunction TypeCalls
genfigfunction80
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
188
h=plot(x{1,pageNum},x{2,pageNu...
800.809 s48.7%
192
plotdescription(txt,plotNum,pa...
800.306 s18.4%
214
h=plot(x{1,pageNum}(f),x{2,pag...
740.120 s7.2%
189
manaxis(ax,x{2,pageNum}(:,plot...
800.098 s5.9%
203
f = find(allflags{2,pageNum}(:...
800.087 s5.3%
All other lines  0.240 s14.5%
Totals  1.661 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
genfig>plotdescriptionsubfunction800.306 s18.4%
newplotfunction2040.251 s15.1%
holdfunction1620.077 s4.6%
lineseriesfunction2040.055 s3.3%
genfig>manaxissubfunction1600.011 s0.7%
Self time (built-ins, overhead, etc.)  0.962 s57.9%
Totals  1.661 s100% 
Code Analyzer results
Line numberMessage
173Input argument 'multLinesPerPlot' might be unused. If this is OK, consider replacing it by ~.
199The value assigned to variable 'numpts' might be unused.
Coverage results
[ Show coverage for parent directory ]
Total lines in function48
Non-code lines (comments, blank lines)19
Code lines (lines that can run)29
Code lines that did run27
Code lines that did not run2
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.