system
(system)
April 6, 2019, 4:04am
1
External Email - Use Caution
Dear All,
Visualization of FIF generates nice color graphs and EDF generates ugly
black and white graphs. Can we get color graphs for EDF as well?
Senaka
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20190406/7ce7c1a5/attachment.html
system
(system)
April 6, 2019, 7:48am
2
External Email - Use Caution
hi Senaka,
I assume you speak about "spatial_colors=True" option in evoked.plot
if so to get the colors you need to have the channel locations that you can
so
far set with set_montage method.
HTH
Alex
system
(system)
April 6, 2019, 4:41pm
3
External Email - Use Caution
Dear Alex,
Thank you for the quick reply. I am trying to channel locations using the
code below.
ch_pure = ['AF3', 'F7', 'F3', 'FC5', 'T7', 'P7', 'O1', 'O2', 'P8','T8',
'FC6', 'F4', 'F8', 'AF4']
montage_pure = mne.channels.read_montage(kind="emotiv", ch_names=ch_pure,
path='/Volumes/STORAGE/Dropbox/')
raw.set_montage(montage=montage_pure)
emotiv.locs has the following content
1 0 .181 Fz..
2 0 0 Cz..
3 180 .181 Pz..
4 180 .352 Oz..
5 -39 .231 F3..
6 39 .231 F4..
7 -90 .181 C3..
8 90 .181 C4..
9 -90 .352 T3..
10 90 .352 T4..
11 -142 .231 P3..
12 142 .231 P4..
13 0 .352 Fpz.
14 0 .501 EOG.
Anyway I ended up with the error:
365 upper_names = [ch_name.upper() for ch_name in ch_names]
366 sel, ch_names_ = zip(*[(i,
ch_names[upper_names.index(e)]) for i, e in--> 367
enumerate([n.upper() for n in ch_names_]) 368
if e in upper_names]) 369 sel =
list(sel)
ValueError: not enough values to unpack (expected 2, got 0)
Any suport is highly appreciated.
Senaka
system
(system)
April 6, 2019, 5:08pm
4
External Email - Use Caution
Dear Senaka,
for each channel listed in ch_pure, the corresponding location is searched for in the emotiv.locs file. Hence, the channel names in ch_pure should match those in emotiv.locs, which in your case is not the case.
best,
Marijn.
system
(system)
April 7, 2019, 1:18am
5
External Email - Use Caution
Dear Marijn,
I adjusted emotiv.locs file according to the ch_pure channel names. Still,
I am getting the same error.
emotive.locs after rearranging.
1 0 0.181 AF3.
2 0 0 F7..
3 180 0.181 F3..
4 180 0.352 FC5.
5 -39 0.231 T7..
6 39 0.231 P7..
7 -90 0.181 O1..
8 90 0.181 O2..
9 -90 0.352 P8..
10 90 0.352 T8..
11 -142 0.231 FC6.
12 142 0.231 F4..
13 0 0.352 F8..
14 0 0.501 AF4.
Regards,
Senaka
system
(system)
April 7, 2019, 12:30pm
6
External Email - Use Caution
Dear Senaka,
are there really dots at the end of all the channel names in emotive.locs? If so, try without them.
best,
Marijn.
system
(system)
April 8, 2019, 1:20am
7
External Email - Use Caution
Dear Marijn,
Thank removing dots solved my problem. Thanks a lot.
By the way, my plots are still black and white. raw.info shows
chs : list | 15 items (EEG: 14, STIM: 1)
I have 14 channels and one marker channel (STIM). Is this correct?
Best regards,
Senaka
system
(system)
April 8, 2019, 5:28am
8
External Email - Use Caution
Dear Senaka,
it should work by now. Can you post the relevant lines of code you are using to load the electrode positions, apply the montage and make the plot? Maybe that will give us a clue as to what may be wrong.
best,
Marijn.