By default, raw.plot_psd() excludes bad channels. According to the docs, I can include bad channels by setting picks="all", but this doesn't work:
import mne
from mne.datasets import sample
data_path = sample.data_path()
raw_fname = data_path + '/MEG/sample/sample_audvis_raw.fif'
raw = mne.io.read_raw_fif(raw_fname, preload=True)
raw.drop_channels(raw.info["ch_names"][:315])
raw.drop_channels(raw.info["ch_names"][4:])
raw.info["bads"] = ['EEG 003', 'EEG 004']
raw.plot_psd(spatial_colors=False)
raw.plot_psd(spatial_colors=False, picks="all")
Both plots only show the traces for the good channels.
By default,
raw.plot_psd()excludes bad channels. According to the docs, I can include bad channels by settingpicks="all", but this doesn't work:Both plots only show the traces for the good channels.