|
158 | 158 | splot(end ).unit = 'aCOH'; |
159 | 159 | splot(end ).cortex = cortexFlag; |
160 | 160 | splot(end ).matrix = 1; |
161 | | - splot(end ).psd = 0; |
| 161 | + splot(end ).psd = -1; |
162 | 162 | splot(end ).plot3d = plot3dFlag; |
163 | 163 | end |
164 | 164 |
|
|
169 | 169 | splot(end ).unit = 'cCOH'; |
170 | 170 | splot(end ).cortex = cortexFlag; |
171 | 171 | splot(end ).matrix = 1; |
172 | | - splot(end ).psd = 0; |
| 172 | + splot(end ).psd = -1; |
173 | 173 | splot(end ).plot3d = plot3dFlag; |
174 | 174 | end |
175 | 175 |
|
|
180 | 180 | splot(end ).unit = 'iCOH'; |
181 | 181 | splot(end ).cortex = cortexFlag; |
182 | 182 | splot(end ).matrix = 1; |
183 | | - splot(end ).psd = 0; |
| 183 | + splot(end ).psd = -1; |
184 | 184 | splot(end ).plot3d = plot3dFlag; |
185 | 185 | end |
186 | 186 |
|
|
191 | 191 | splot(end ).unit = 'GC'; |
192 | 192 | splot(end ).cortex = cortexFlag; |
193 | 193 | splot(end ).matrix = 1; |
194 | | - splot(end ).psd = 0; |
| 194 | + splot(end ).psd = -1; |
195 | 195 | splot(end ).plot3d = plot3dFlag; |
196 | 196 | end |
197 | 197 |
|
|
202 | 202 | splot(end ).unit = 'TRGC'; % not used yet |
203 | 203 | splot(end ).cortex = cortexFlag; |
204 | 204 | splot(end ).matrix = 1; |
205 | | - splot(end ).psd = 0; |
| 205 | + splot(end ).psd = -1; |
206 | 206 | splot(end ).plot3d = plot3dFlag; |
207 | 207 | end |
208 | 208 |
|
|
213 | 213 | splot(end ).unit = 'MIC'; % not used yet |
214 | 214 | splot(end ).cortex = cortexFlag; |
215 | 215 | splot(end ).matrix = -1; |
216 | | - splot(end ).psd = 0; |
| 216 | + splot(end ).psd = -1; |
217 | 217 | splot(end ).plot3d = plot3dFlag; |
218 | 218 | end |
219 | 219 |
|
|
224 | 224 | splot(end ).unit = 'MIM'; % not used yet |
225 | 225 | splot(end ).cortex = cortexFlag; |
226 | 226 | splot(end ).matrix = 1; |
227 | | - splot(end ).psd = 0; |
| 227 | + splot(end ).psd = -1; |
228 | 228 | splot(end ).plot3d = plot3dFlag; |
229 | 229 | end |
230 | 230 |
|
|
235 | 235 | splot(end ).unit = 'PAC'; % not used yet |
236 | 236 | splot(end ).cortex = cortexFlag; |
237 | 237 | splot(end ).matrix = 1; |
238 | | - splot(end ).psd = 0; |
| 238 | + splot(end ).psd = -1; |
239 | 239 | splot(end ).plot3d = plot3dFlag; |
240 | 240 | end |
241 | 241 |
|
242 | 242 | if isfield(EEG.roi, 'PAC') |
243 | | - splot(end+1).label = 'ROI to ROI Phase-amplitude coupling'; |
| 243 | + splot(end+1).label = 'ROI to ROI Phase-amplitude coupling (antisymmetrized)'; |
244 | 244 | splot(end ).labelshort = 'Phase-amplitude coupling'; |
245 | 245 | splot(end ).acronym = 'PAC_anti'; % PAC based on antisymmetrized bicoherence |
246 | 246 | splot(end ).unit = 'PAC'; % not used yet |
247 | 247 | splot(end ).cortex = cortexFlag; |
248 | 248 | splot(end ).matrix = 1; |
249 | | - splot(end ).psd = 0; |
| 249 | + splot(end ).psd = -1; |
250 | 250 | splot(end ).plot3d = plot3dFlag; |
251 | 251 | end |
252 | 252 |
|
|
262 | 262 | end |
263 | 263 |
|
264 | 264 | if isfield(EEG.roi, 'TDE') |
265 | | - splot(end+1).label = 'ROI to ROI Time-delay estimation'; |
| 265 | + splot(end+1).label = 'ROI to ROI Time-delay estimation (antisymmetrized)'; |
266 | 266 | splot(end ).labelshort = 'Time-delay estimation'; |
267 | 267 | splot(end ).acronym = 'TDE_anti'; % TDE based on antisymmetrized bispectrum |
268 | 268 | splot(end ).unit = 'TDE'; % not used yet |
|
508 | 508 | error('PAC (original bicoherence) cannot be plotted, field is missing.') |
509 | 509 | end |
510 | 510 | cortexPlot = mean(matrix, 2); |
| 511 | + titleStr = sprintf('f1 = %1.1f Hz, f2 = %1.1f Hz', S.PAC.fcomb.low, S.PAC.fcomb.high); |
511 | 512 |
|
512 | 513 | case {'pac_anti'} |
513 | 514 | if isfield(S.PAC, 'b_anti_norm') |
|
518 | 519 | error('PAC (antisymmetrized bicoherence) cannot be plotted, field is missing.') |
519 | 520 | end |
520 | 521 | cortexPlot = mean(matrix, 2); |
| 522 | + titleStr = sprintf('f1 = %1.1f Hz, f2 = %1.1f Hz', S.PAC.fcomb.low, S.PAC.fcomb.high); |
521 | 523 |
|
522 | 524 | case {'tde' 'tde_anti'} |
523 | 525 | if strcmpi(g.measure, 'tde') |
|
591 | 593 | warning('Butterfly plots (frequency x connectivity) cannot be computed for PAC because frequencies have already been specified for the computation.') |
592 | 594 | else |
593 | 595 | figure; plot(EEG.roi.freqs, butterflyplot, 'LineWidth', 1) |
594 | | - h = title([ 'ROI to ROI ' replace_underscores(g.measure) ' (' titleStr ')' ]); |
| 596 | + h = title([ 'ROI to ROI ' replace_underscores(g.measure)]); |
595 | 597 | set(h, 'fontsize', 16); |
596 | 598 | xlabel('Frequency (Hz)') |
597 | 599 | ylabel([replace_underscores(g.measure) ' (a.u.)']) |
@@ -970,8 +972,8 @@ function plot_tde(T, shift, region_X, region_Y, method) |
970 | 972 | [~, peak_idx] = max(T); |
971 | 973 | est_delay = shift(peak_idx); % in Hz |
972 | 974 |
|
973 | | - figure; plot(shift, T, 'LineWidth', 1) |
974 | | - xline(est_delay, '--r') |
| 975 | + figure; plot(shift, T, 'black', 'LineWidth', 1) |
| 976 | + xline(est_delay, '--r', 'LineWidth', 1) |
975 | 977 | xlabel('Time (s)') |
976 | 978 | ylabel('a.u.') |
977 | 979 | h = title(sprintf('%s -> %s TDE | Method %d', region_X, region_Y, method)); |
|
0 commit comments