Skip to content

Default arguments of raw.plot_psd() changed #11343

@cbrnr

Description

@cbrnr

Description of the problem

It seems like the default arguments of raw.plot_psd() changed in MNE 1.2 (see example below).

Steps to reproduce

import mne
from mne.datasets import sample

fname = sample.data_path() / "MEG" / "sample" / "sample_audvis_raw.fif"
raw = mne.io.read_raw(fname).pick_types(eeg=True).load_data()
raw.plot_psd(fmax=60)

Link to data

No response

Expected results

Result from MNE < 1.2:

raw-plot_psd-1 1

Actual results

Result from MNE >= 1.2 (including main):

raw-plot_psd-main

Additional information

Platform: macOS-11.7.1-x86_64-i386-64bit
Python: 3.10.8 (main, Oct 13 2022, 10:18:28) [Clang 13.0.0 (clang-1300.0.29.30)]
Executable: /Users/clemens/Projects/mne-python/.direnv/python-3.10.8/bin/python
CPU: i386: 8 cores
Memory: Unavailable (requires "psutil" package)
mne: 1.3.dev0
numpy: 1.23.5 {unknown linalg bindings (threadpoolctl module not found: No module named 'threadpoolctl')}
scipy: 1.9.3
matplotlib: 3.6.2 {backend=MacOSX}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions