Skip to content

Magnetometer positions look odd in PSD plot #7837

@hoechenberger

Description

@hoechenberger

Steps to reproduce

Let's first visualize the magnetometer channel positions via Raw.plot_sensors():

import mne
from mne.datasets import sample


data_path = sample.data_path()
fname = data_path + '/MEG/sample/sample_audvis_raw.fif'
raw = mne.io.read_raw_fif(fname)
raw.plot_sensors(ch_type='mag')

This produces:
sensors

Looking good. Now let's plot PSDs of the data.

raw.plot_psd()

Result cropped so it only shows the sensor positions (top to bottom: mag, grad, eeg):
Figure_1 copy

The magnetometer sensor layout looks incorrect, and doesn't match the one produced by plot_sensors(). Am I missing something here?

cc @agramfort

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions