I’m trying to do a simple 2D plot of a sub-selection of my eeg sensors. I’ve tried using plot_sensors(), going via plot_ch_adjacency(), and was looking into make_eeg_layout() but i can’t seem to be able to do it. I’m sure there must be a very simple way that i’m somehow managing to miss…
# %%
# Plot specific sensors
(
raw
.copy()
.pick(["F8", "T7", "T8", "Oz", "P3", "Cz"])
.plot_sensors(show_names=True, sphere="eeglab")
)
# %%
# Plot only sensors on the left hemisphere
# Here, we cannot use the "eeglab" sphere
channel_selections = mne.channels.make_1020_channel_selections(info=raw.info)
(
raw
.copy()
.pick(channel_selections["Left"])
.plot_sensors(show_names=True)
)
Amazing, thanks a lot ! I had actually tried to do raw['picks'] = [mysensorselection], but it didn’t like it and i totally forgot i can do raw.pick().
Thank you (: