This is a static copy of a profile reportHome
genfigAlpha>plotflag (48 calls, 0.481 sec)
Generated 05-Aug-2011 13:03:29 using cpu time.
subfunction in file /home/LeechJ/cbass_analysis/reduc/plotting/genfigAlpha.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 |
137 | h=plot(x{1,dataIndex},x{2,data... | 48 | 0.164 s | 34.1% |  |
158 | h=plot(x{1, dataIndex}(f),x{2,... | 96 | 0.120 s | 25.0% |  |
142 | plotdescription(txt,dataIndex)... | 24 | 0.098 s | 20.5% |  |
145 | plotdescription(txt,dataIndex-... | 24 | 0.066 s | 13.6% |  |
174 | hold off | 48 | 0.022 s | 4.5% |  |
All other lines | | | 0.011 s | 2.3% |  |
Totals | | | 0.481 s | 100% | |
Children (called functions)
Code Analyzer results
Line number | Message |
127 | Input argument 'matrix' might be unused, although a later one is used. Consider replacing it by ~. |
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 50 |
Non-code lines (comments, blank lines) | 17 |
Code lines (lines that can run) | 33 |
Code lines that did run | 31 |
Code lines that did not run | 2 |
Coverage (did run/can run) | 93.94 % |
Function listing
time calls line
127 function h=plotflag(x,allflags,ax,pageNum,plotNum,txt,num,matrix,plotsPerPage)
128
129 % plot data
48 130 if(pageNum==1)
16 131 dataIndex = plotNum;
32 132 else
32 133 dataIndex = sum(plotsPerPage(1:pageNum-1)) + plotNum;
32 134 end
135
136 % dataIndex = (pageNum-1)*plotsPerPage+plotNum;
0.16 48 137 h=plot(x{1,dataIndex},x{2,dataIndex}(:,1:2),'MarkerSize',10);
48 138 manaxis(ax,x{2,dataIndex}(:,1:2));
139
140
48 141 if(pageNum <= (num/2))
0.10 24 142 plotdescription(txt,dataIndex);
24 143 hold on
24 144 else
0.07 24 145 plotdescription(txt,dataIndex-(size(x,2)/2));
24 146 hold on
24 147 end
148
149
150 % check for manual axis settings
0.01 48 151 manaxis(ax,x{2,dataIndex}(:,1:2));
152
153 % plot old flags
48 154 if (~isempty(allflags{2, dataIndex}))
48 155 for mm=1:2
96 156 f = find(allflags{2, dataIndex}(:,mm));
96 157 if (~isempty(f))
0.12 96 158 h=plot(x{1, dataIndex}(f),x{2, dataIndex}(f,1:2),'g.','MarkerSize',10);
96 159 end
96 160 end
48 161 end
162
163 % plot new flags
48 164 if (~isempty(allflags{1, dataIndex}))
48 165 for mm=1:2
96 166 f = find(allflags{1, dataIndex}(:,mm));
96 167 if (~isempty(f))
168 h=plot(x{1, dataIndex}(f),x{2, dataIndex}(f,1:2),'r.','MarkerSize',10);
169 end
96 170 end
48 171 end
172
173
0.02 48 174 hold off
175
48 176 return;
Other subfunctions in this file are not included in this listing.