- MNE-Python version: 0.22.0
- operating system: Windows 10
Please refer to the following figures:
I’d like to draw attention to the middle plots (red-blue freq plot) in each of these two figures, which were created using the following codes extract:
ch_name = ['MEG2013','MEG2022','MEG2023'] #For top plot ch_name = ['MEG2013'] #For bottom plot epochsFIF_condtion1.pick_channels(ch_name) epochsFIF_condtion2.pick_channels(ch_name) tfr_epochs_1 = tfr_morlet(epochsFIF_condtion1, freqs, n_cycles=n_cycles, decim=decim, use_fft=False, return_itc=False, average=False) tfr_epochs_2 = tfr_morlet(epochsFIF_condtion2, freqs, n_cycles=n_cycles, decim=decim, use_fft=False, return_itc=False, average=False) this_tfr1 = tfr_epochs_1.average() this_tfr2 = tfr_epochs_2.average() ## Appended as this is a loop function that creates tfr_morlet data out of multiple participants. ## all_power_sets are a collection of data of all participants all_power_set.append(this_tfr1) all_power_set2.append(this_tfr2) ## Loop ends here after all participants' data have been extracted. Codes below this are only reached ## after the all_power_sets have been filled with all participants' data. ##--------------------------------- ## Create averaged data across all participants tfr_condition_1 = mne.grand_average(all_power_set, interpolate_bads=True, drop_bads=True) tfr_condition_2 = mne.grand_average(all_power_set2, interpolate_bads=True, drop_bads=True) tfr_contrast = mne.combine_evoked([tfr_condition_1, tfr_condition_2], weights=[1, -1]) tfr_contrast.plot(axes=ax2, vmin=vmin, vmax=vmax)
The top middle plot was created based on information from 3 sensors whereas the bottom middle plot was created based on information from 1 sensor. However, both plots look exactly the same. Changing the position of sensors in
ch_name makes no difference as it always plot the sensor with the smallest number (ie. 2013). I was expecting the top plot to show the averaged time-freq activity across the three sensors but this is not happening.
Am I missing a step somewhere to get the plotting done right? Or is this some kind of bug?